native & non-native transfers ERC-20

Returns the latest 10 transfers on Ethereum, where transfer sender is 0x21a3…5549: block date, transaction hash, from, to, transaction type, transfer amount, currency name and 3 more fields.

By Divyasshree N · saved 12 January 2024 · run 3 times · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $address: String!) {
  native: EVM(dataset: combined, network: $network) {
    Transfers(
      where: {Transfer: {Sender: {is: $address}, Currency: {Native: true}}}
      orderBy: {descending: Block_Date}
      limit: {count: 10}
    ) {
      Block {
        Date
      }
      Transaction {
        Hash
        From
        To
        Type
      }
      Transfer {
        Amount
        Currency {
          Name
        }
        Id
        Success
        Type
      }
    }
  }
  not_native: EVM(dataset: combined, network: $network) {
    Transfers(
      where: {Transfer: {Sender: {is: $address}, Currency: {Native: true}}}
      orderBy: {descending: Block_Date}
      limit: {count: 10}
    ) {
      Block {
        Date
      }
      Transaction {
        Hash
        From
        To
        Type
      }
      Transfer {
        Amount
        Currency {
          Name
        }
        Id
        Success
        Type
      }
    }
  }
}

Variables

{
  "network": "eth",
  "address": "0x21a31ee1afc51d94c2efccaa2092ad1028285549"
}

Similar queries