Cross Chain
Balances
Transactions
- GETGet a transaction
- GETGet transaction summary for address
- GETGet earliest transactions for address (v3)
- GETGet recent transactions for address (v3)
- GETGet paginated transactions for address (v3)
- GETGet bulk time bucket transactions for address (v3)
- GETGet all transactions in a block by page (v3)
- GETGet all transactions in a block (v3)
NFT
- Core Rendering
- Market Data
- Ownership & Token Gating
Bitcoin
Get NFT approvals for address
Commonly used to get a list of NFT approvals across all token contracts categorized by spenders for a wallet’s assets.
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>"
}
]
}
]
}
Processing: Realtime
Path Parameters
The chain name eg: eth-mainnet
.
The requested address. Passing in an ENS
, RNS
, Lens Handle
, or an Unstoppable Domain
resolves automatically.
Response
The timestamp when the response was generated. Useful to show data staleness to users.
The requested chain ID eg: 1
.
The requested chain name eg: eth-mainnet
.
The requested address.
List of response items.
Use the relevant contract_address
to lookup prices, logos, token transfers, etc.
The label of the contract address.
The ticker symbol for this contract. This field is set by a developer and non-unique across a network.
Contracts with non-zero approvals for this token.
The height of the block.
The offset is the position of the tx in the block.
The offset is the position of the log entry within an event log."
The block signed timestamp in UTC.
Most recent transaction that updated approval amounts for the token.
Address of the contract with approval for the token.
Name of the contract with approval for the token.
The token ids approved.
Remaining number of tokens granted to the spender by the approval.
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>"
}
]
}
]
}