GET
/
v1
/
{chainName}
/
tokens
/
{contractAddress}
/
nft_transactions
/
{tokenId}
import { GoldRushClient } from "@covalenthq/client-sdk";

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

ApiServices();
{
  "updated_at": "2023-11-07T05:31:56Z",
  "chain_id": 123,
  "chain_name": "<string>",
  "items": [
    {
      "contract_decimals": 123,
      "contract_name": "<string>",
      "contract_ticker_symbol": "<string>",
      "logo_url": "<string>",
      "contract_address": "<string>",
      "supports_erc": [
        "<string>"
      ],
      "nft_transactions": [
        {
          "block_signed_at": "2023-11-07T05:31:56Z",
          "block_height": 123,
          "tx_hash": "<string>",
          "tx_offset": 123,
          "successful": true,
          "from_address": "<string>",
          "from_address_label": "<string>",
          "to_address": "<string>",
          "to_address_label": "<string>",
          "value": "<string>",
          "value_quote": 123,
          "pretty_value_quote": "<string>",
          "gas_offered": 123,
          "gas_spent": 123,
          "gas_price": 123,
          "fees_paid": "<string>",
          "gas_quote": 123,
          "pretty_gas_quote": "<string>",
          "gas_quote_rate": 123,
          "log_events": [
            {
              "block_signed_at": "2023-11-07T05:31:56Z",
              "block_height": 123,
              "tx_offset": 123,
              "log_offset": 123,
              "tx_hash": "<string>",
              "raw_log_topics": [
                "<string>"
              ],
              "sender_contract_decimals": 123,
              "sender_name": "<string>",
              "sender_contract_ticker_symbol": "<string>",
              "sender_address": "<string>",
              "sender_address_label": "<string>",
              "sender_logo_url": "<string>",
              "supports_erc": [
                "<string>"
              ],
              "sender_factory_address": "<string>",
              "raw_log_data": "<string>",
              "decoded": {
                "name": "<string>",
                "signature": "<string>",
                "params": [
                  {
                    "name": "<string>",
                    "type": "<string>",
                    "indexed": true,
                    "decoded": true,
                    "value": "<string>"
                  }
                ]
              }
            }
          ]
        }
      ],
      "is_spam": true
    }
  ]
}
Credit Cost: 0.1 per item.
Processing: Realtime

Path Parameters

chainName
string
required

The chain name eg: eth-mainnet.

contractAddress
string
required

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

tokenId
string
required

The requested token ID.

Query Parameters

no-spam
boolean

If true, the suspected spam tokens are removed. Supports eth-mainnet and matic-mainnet.

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.