The Tokens API retrieves high-level information on ERC20 tokens, ERC721 tokens (also known as NFT contracts, "Collections," or "NFT Collections," containing multiple tokens), and ERC1155 tokens (also called NFT contracts, "Collections," or "NFT Collections," containing several tokens).
Inputs & Filters
inputTokenFilter { address: # Token contract address on the blockchain (ERC20, ERC721, ERC1155) name: # Name of the contract (e.g. "Moonbirds"). Note that this will fetch all contracts with the name "Moonbirds" owner: # # Identity: blockchain address, domain name, social identity of the owner of the contract symbol: # Symbol of the contract (e.g. "BAYC"). Note - it will return all contracts that have the same symbol. type: # ERC20, ERC721, ERC1155}
Querying by name or symbol returns all contracts with matching data. These fields are not unique.
Outputs
typeToken {address: Address! # Token contract address on the blockchainbaseURI: String # Returns the base URIblockchain: Blockchain # Blockchain where the token is deployedchainId: String # Unique blockchain identifiercontractMetaData: ContractMetadata # Token's contract metadata objectcontractMetaDataURI: String # URI for the token's contract metadatadecimals: Int # Number of decimal places for the token's smallest unitid: ID # Airstack unique identifier for the contractlastTransferBlock: Int # Block number of the token's most recent transferlastTransferHash: String # Hash of the token's most recent transferlastTransferTimestamp: Time # Timestamp of the token's most recent transferlogo: # Logo image for the contract in various sizes (if available)name: # Token contract nameowner: Wallet! # **Nested query** allowing to retrieve address, domain names, and social profiles of the contract ownerprojectDetails: # Off-chain data such as project name, description, website, Discord & TwitterrawContractMetaData: # Token contract metadata as it appears inside the contactsymbol: String # Token contract symbol (ticker)tokenBalances: # **Nested query** - allows querying Token Balance informationtokenNfts: # **Nested query** - individual NFT token datatokenTraits: Map # Returns count of all token attribute types and valuestotalSupply: String # Total supply of the tokentype: Tokentype # ERC20, ERC721, or ERC1155}