Query ERC20 Transfers

Returns transfers on Ethereum, where transaction hash is 0x54a7…ae65: transaction hash, from, to, gas, gas price, transfer amount, amount in USD and 10 more fields.

By Michael.Li · saved 6 March 2025 · Bitquery API v2

What it returns

Filters

The query

query ERC20TransfersByTxHashes($txHashes: [String!]) {
  EVM(dataset: combined, network: eth) {
    Transfers(
      where: {Transaction: {Hash: {in: $txHashes}}, 
        Transfer: {Currency: {Fungible: true, Native: false}}}
    ) {
      Transaction {
        Hash
        From
        To
        Gas
        GasPrice
      }
      Transfer {
        Amount
        AmountInUSD
        Currency {
          Name
          Symbol
          Decimals
          SmartContract
        }
        Sender
        Receiver
        Type
      }
      Block {
        Number
        Time
      }
      transferCount: count
    }
  }
}

Variables

{"txHashes": ["0x54a7c20da36fff21a1d7404f29a42d422aa5a4dec12082872061a7e953bcae65"]}

Similar queries