transfers between two ethereum addresses ( particular currency )

The query transfers between two Ethereum addresses for one particular currency

Returns transfers on Ethereum, where sender is 0xdfd5…963d, receiver is 0xfa10…cdef and currency is 0x5a98…1b32: count big int and amount.

By Omkar Acharekar · saved 5 August 2023 · Bitquery API v1

What it returns

Filters

The query

# 1 - 0xdfd5293d8e347dfe59e90efd55b2956a1343963d
# 2 - 0xfa103c21ea2df71dfb92b0652f8b1d795e51cdef

query ($network: EthereumNetwork!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    transfers1to2: transfers(
      date: {since: $from, till: $till}
      sender: {is: "0xdfd5293d8e347dfe59e90efd55b2956a1343963d"}
      receiver: {is: "0xfa103c21ea2df71dfb92b0652f8b1d795e51cdef"}
      currency: {is: "0x5a98fcbea516cf06857215779fd812ca3bef1b32"}
    ) {
      no_of_transfer_sent:countBigInt
      total_volume:amount(calculate:sum)
    }
    transfers2to1: transfers(
      date: {since: $from, till: $till}
      sender: {is: "0xfa103c21ea2df71dfb92b0652f8b1d795e51cdef"}
      receiver : {is: "0xdfd5293d8e347dfe59e90efd55b2956a1343963d"} 
      currency: {is: "0x5a98fcbea516cf06857215779fd812ca3bef1b32"}
    ) {
      no_of_transfer_recieve:countBigInt
      total_volume:amount(calculate:sum)
    }
  }
}

Variables

{

  "network": "ethereum",
  "from": null,
  "till": null
  
}

Similar queries