inflow and outflow of an address

Returns transfers on Ethereum, where receiver is 0x3328…d541, sender is 0x3328…d541 and date since 2022-05-24: amount.

By gaurav · saved 31 May 2022 · run 2 times · Bitquery API v1

What it returns

Filters

The query

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

Variables

{
  "network": "ethereum",
  "address": "0x3328ca5b535d537f88715b305375c591cf52d541",
  "from": "2022-05-24",
  "till": "2022-05-31T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries