The TokenBalances API covers the owners and balances of ERC20, ERC721, and ERC1155 tokens.
Inputs & Filters
inputTokenBalanceFilter {formattedAmount: # Allows filtering based on Balance amount in decimals, e.g. show me Balances above 200owner: # Identity: blockchain address, domain name, social identitytokenAddress: # Token contract address on the blockchain (ERC20, ERC721, ERC1155)tokenId: # Unique NFT token IDtokenType: # ERC20, ERC721, ERC1155}
Outputs
typeTokenBalance {amount: String! # Token balance amountblockchain: Blockchain # Blockchain where the token balance is locatedchainId: String! # Unique blockchain identifierid: ID! # Airstack unique identifier for the data pointlastUpdatedBlock: Int! # Block number when the token balance was last updatedlastUpdatedTimestamp: Time # Timestamp when the token balance was last updatedowner: Wallet! # **Nested query** allowing to retrieve address, domain names, and social profiles of the ownertoken: Token # **Nested query** to get token contract level datatokenAddress: Address! # Token contract addresstokenId: String # Unique NFT token ID, if applicabletokenNfts: # **Nested query** allowing to get NFT token data (images, traits, etc.)tokenTransfer: # **Nested query** with token transfer history and detailstokenType: TokenType # ERC20, ERC721, or ERC1155}
See here for how to query with ENS or web3 social identities, such as Farcaster