Get ERC20 metadata by contract

Returns address details and address stats on Ethereum, where address is 0x1f98…f984: annotation, address, contract type, currency symbol, currency name, decimals, token type and 3 more fields.

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

What it returns

Filters

The query

query ($network: EthereumNetwork!, $address: String!) {
  ethereum(network: $network) {
    address(address: {is: $address}) {
      annotation
      address
      smartContract {
        contractType
        currency {
          symbol
          name
          decimals
          tokenType
        }
        protocolType
      }
      balance
    }
    addressStats(address: {is: $address}) {
      address {
        firstTxAt {
          iso8601
        }
      }
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "ethereum",
  "address": "0x1f9840a85d5af5bf1d1762f925bdaddc4201f984"
}

Similar queries