WETH in and out

Returns transfers on Ethereum, where sender is 0xc02a…6cc2, receiver is 0xc02a…6cc2 and currency is ETH: amount.

By gaurav · saved 28 November 2022 · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $nativeCurrency: String!, $address: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    outflow: transfers(
      date: {since: $from, till: $till}
      amount: {gt: 0}
      sender: {is: $address}
      currency: {is: $nativeCurrency}
      height: {lteq: 16067725}
    ) {
      amount(calculate: sum)
    }
    inflow: transfers(
      date: {since: $from, till: $till}
      amount: {gt: 0}
      receiver: {is: $address}
      currency: {is: $nativeCurrency}
      height: {lteq: 16067725}
    ) {
      amount(calculate: sum)
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "ethereum",
  "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
  "nativeCurrency": "ETH",
  "from": null,
  "till": null,
  "dateFormat": "%Y-%m-%d"
}

Similar queries