inflow and outflow of an address

Returns the latest 25000 transfers on Ethereum, where receiver is 0x1973…c545, date since 2020-01-01 and amount is above 0: timestamp time, block height, sender address, annotation, currency address, currency symbol, amount and 2 more fields.

By gaurav · saved 7 July 2022 · run 3 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $address: String!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime) {
  ethereum(network: $network) {
    inflows: transfers(
      options: {desc: "block.timestamp.time", asc: "currency.symbol", limit: $limit, offset: $offset}
      date: {since: $from}
      amount: {gt: 0}
      receiver: {is: $address}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      address: sender {
        address
        annotation
      }
      currency {
        address
        symbol
      }
      amount
      amount_usd: amount(in: USD)
      transaction {
        hash
      }
      external
    }
    outflows: transfers(
      options: {desc: "block.timestamp.time", asc: "currency.symbol", limit: $limit, offset: $offset}
      date: {since: $from}
      amount: {gt: 0}
      receiver: {is: $address}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      address: sender {
        address
        annotation
      }
      currency {
        address
        symbol
      }
      amount
      amount_usd: amount(in: USD)
      transaction {
        hash
      }
      external
    }
  }
}

Variables

{
  "limit": 25000,
  "offset": 0,
  "network": "ethereum",
  "address": "0x1973ba06dbc27b7f81b6546e9ac293e12edfc545",
  "from": "2020-01-01",
  "dateFormat": "%Y-%m-%d"
}

Similar queries