balance
The balance query retrieves information about a specific token or NFT balance for a given account.
It returns a Balance object containing the asset type, contract details, account address, balance value, and associated token information.
Schema Definition
balance(
contract: String!
tokenId: UInt256
account: String!
): Balance
Arguments
| Argument | Type | Description |
|---|---|---|
contract | String! non-null scalar | The contract address of the token. |
tokenId | UInt256 scalar | The specific token ID (required for ERC-721 and ERC-1155 tokens). |
account | String! non-null scalar | The account address holding the tokens. |