Get Balance
Retrieves the quantity of NFTs held by a specific wallet address for a given collection across multiple blockchain networks. This endpoint allows users and developers to quickly determine the number of NFTs an address owns within a particular collection, facilitating portfolio tracking, auditing of NFT holdings, and interactions with NFT marketplaces or decentralized applications.
💡 Compute Unit Value: 95 (Fixed)
Request
- Base URLhttps://svc.blockdaemon.com
- URLhttps://svc.blockdaemon.com/defi/v1/nft/getbalance
- AuthAPI key in header X-API-Key
Query parameters
The unique ID to direct queries or transactions to the correct blockchain. Find more here.
The abbreviated chain name for queries or transactions.
The smart contract address of the NFT collection whose balance is to be retrieved.
The user's blockchain address for which the NFT balance will be queried.
Specifies the NFT standard to use for the query. Acceptable values are 721 for ERC-721 tokens and 1155 for ERC-1155 tokens. If not provided, the default value is 721
The unique token ID within the NFT collection. Required for ERC-1155 (nftProtocolId=1155) since multiple token types share one contract. For ERC-721, if only querying total owned, this can be omitted.
Response
Successful response
Example response
{
"status": 200,
"msg": "success",
"data": {
"balance": "2"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.