Get ERC20 token metadata by token addresses

Returns address details on Ethereum, where address is 0xC02a…6Cc2 or 0x5149…86CA: annotation, address, contract type, currency symbol, currency name, decimals, token type and 2 more fields.

By Omkar Acharekar · saved 5 June 2023 · run 12 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!) {
  ethereum(network: $network) {
    address(address: {in : ["0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
    "0x514910771AF9Ca656af840dff83E8264EcF986CA"]}) {
      annotation
      address
      smartContract {
        contractType
        currency {
          symbol
          name
          decimals
          tokenType
        }
        protocolType
      }
      balance
    }
  }
}

Variables

{
 
  "network": "ethereum"
 
}

Similar queries