Eth inflow and outflow

Returns transfers on Ethereum, where receiver is 0xb860…5b0a, sender is 0xb860…5b0a and currency is ETH, sorted by date date: date date, count big int and amount.

By gaurav · saved 24 January 2024 · run 3 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $dateFormat: String!, $nativeCurrency: String!, $address: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    inflows: transfers(
      options: {asc: "date.date"}
      date: {since: $from, till: $till}
      amount: {gt: 0}
      receiver: {is: $address}
      currency: {is: $nativeCurrency}
    ) {
      date: date {
        date(format: $dateFormat)
      }
      count: countBigInt
      amount
    }
    outflows: transfers(
      options: {asc: "date.date"}
      date: {since: $from, till: $till}
      sender: {is: $address}
      amount: {gt: 0}
      currency: {is: $nativeCurrency}
    ) {
      date: date {
        date(format: $dateFormat)
      }
      count: countBigInt
      amount
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "ethereum",
  "address": "0xb8601d23f8b75a8d0265a9880f1f0f0c71715b0a",
  "nativeCurrency": "ETH",
  "from": "2024-01-17",
  "till": "2024-01-24T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries