POST
/
v1
/
{chainName}
/
nft
/
request
/
collection_cache
/
{collectionContract}
import { GoldRushClient } from "@covalenthq/client-sdk";

const ApiServices = async () => {
    const client = new GoldRushClient("YOUR_API_KEY");
    const resp = await client.NftService.requestNftCollectionCache({chainName: "chainName", walletAddress: "walletAddress"});
    console.log(resp.data);
};

ApiServices();
{
  "updated_at": "2023-11-07T05:31:56Z",
  "chain_id": 123,
  "chain_name": "<string>",
  "items": [
    {
      "requested_collection_address": "<string>",
      "requested_collection_name": "<string>",
      "token_total_supply_identified": 123,
      "cached_metadata_count": 123,
      "cached_asset_count": 123,
      "cached_thumbnail_count": 123,
      "last_scraped_at": "2023-11-07T05:31:56Z",
      "requested_collection_queued": true
    }
  ]
}

Credit Cost

10000 per call

Processing

Batch

Authorizations

Authorization
string
header
required

Bearer authentication header of the form: Bearer <token>, where <token> is your GoldRush API Key.

Path Parameters

chainName
string
required

The chain name eg: eth-mainnet.

collectionContract
string
required

The requested collection address. Passing in an ENS, RNS, Lens Handle, or an Unstoppable Domain resolves automatically.

Response

200 - application/json
Successful response
updated_at
string

The timestamp when the response was generated. Useful to show data staleness to users.

chain_id
integer

The requested chain ID eg: 1.

chain_name
string

The requested chain name eg: eth-mainnet.

items
object[]

List of response items.