Identify Type of Token

ERC1155 = Fungible false, HasURI true ERC20 = Fungible true, HasURI false ERC721 = Fungible false, HasURI true based on that we can determine the type of token!

By lukas · saved 30 October 2023 · run 10 times · Bitquery API v2

What it returns

Filters

The query

query XMyQuery {
  EVM(dataset: archive, network: eth) {
    erc20_identify: Transfers(
      limit: {count: 1}
      where: {Transfer: {Currency: {SmartContract: {is: "0xca4b70beccabce29efa5bc5c86311e5d38461842"}}}}
    ) {
      Transfer {
        Currency {
          Fungible
          HasURI
        }
      }
    }
    erc721_identify: Transfers(
      limit: {count: 1}
      where: {Transfer: {Currency: {SmartContract: {is: "0x60e4d786628fea6478f785a6d7e704777c86a7c6"}}}}
    ) {
      Transfer {
        Currency {
          Fungible
          HasURI
        }
      }
    }
    erc1155_identify: Transfers(
      limit: {count: 1}
      where: {Transfer: {Currency: {SmartContract: {is: "0xa6ecc9ea6c61945e78a9ce3adedbdf486c976fd9"}}}}
    ) {
      Transfer {
        Currency {
          Fungible
          HasURI
        }
      }
    }
  }
}

Similar queries