inbound and outbound using alias

Returns the latest 10 transfers on Ethereum, where receiver is 0xcb99…837c, sender is 0xcb99…837c and amount is above 0: timestamp time, block height, sender address, annotation, currency address, currency symbol, gas value and 4 more fields.

By gaurav · saved 2 June 2021 · run 3 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    inbound: transfers(
      options: {desc: "block.timestamp.time", asc: "currency.symbol", limit: 10}
      amount: {gt: 0}
      receiver: {is: "0xcb99ee10c7cb3813df8672bf83d3a77b5c52837c"}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      address: sender {
        address
        annotation
      }
      currency {
        address
        symbol
      }
      gasValue
      amount
      transaction {
        hash
      }
      external
    }
    outbound: transfers(
      options: {desc: "block.timestamp.time", asc: "currency.symbol", limit: 10}
      amount: {gt: 0}
      sender: {is: "0xcb99ee10c7cb3813df8672bf83d3a77b5c52837c"}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      address: receiver {
        address
        annotation
      }
      currency {
        address
        symbol
      }
      amount
      transaction {
        hash
      }
      gasValue
      external
    }
  }
}

Variables

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

Similar queries