GET
/
v1
/
{chainName}
/
nft
/
approvals
/
{walletAddress}
import { GoldRushClient } from "@covalenthq/client-sdk";

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

ApiServices();
{
  "updated_at": "2023-11-07T05:31:56Z",
  "chain_id": 123,
  "chain_name": "<string>",
  "address": "<string>",
  "items": [
    {
      "contract_address": "<string>",
      "contract_address_label": "<string>",
      "contract_ticker_symbol": "<string>",
      "token_balances": [
        {
          "token_id": "<string>",
          "token_balance": "<string>"
        }
      ],
      "spenders": [
        {
          "block_height": 123,
          "tx_offset": 123,
          "log_offset": 123,
          "block_signed_at": "2023-11-07T05:31:56Z",
          "tx_hash": "<string>",
          "spender_address": "<string>",
          "spender_address_label": "<string>",
          "token_ids_approved": "<string>",
          "allowance": "<string>"
        }
      ]
    }
  ]
}
Credit Cost: 2 per call.
Processing: Realtime

Path Parameters

chainName
string
required

The chain name eg: eth-mainnet.

walletAddress
string
required

The requested 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.

address
string

The requested address.

items
object[]

List of response items.