bnb v1 query in/out

Returns the latest 10 transfers on Ethereum and BNB Chain, where sender is 0x5009…A7D5, receiver is 0x5009…A7D5 and currency is BNB: amount, sender address, receiver address, transaction hash, iso8601 and block height.

By anchain · saved 10 February 2025 · Bitquery API v1

What it returns

Filters

The query

query MyQuery($address: String, $currency_id: String, $since: ISO8601DateTime, $till: ISO8601DateTime, $network: EthereumNetwork) {
  data: ethereum(network: $network) {
    sender_amount: transfers(
      sender: {is: $address}
      currency: {is: $currency_id}
      time: {since: $since, till: $till}
      success: true
      options: {limit: 10, desc: "block.height"}
    ) {
      amount(calculate: sum)
      sender {
        address
      }
      receiver {
        address
      }
      transaction {
        hash
      }
      block {
        timestamp {
          iso8601
        }
        height
      }
    }
    receiver_amount: transfers(
      receiver: {is: $address}
      currency: {is: $currency_id}
      time: {since: $since, till: $till}
      success: true
      options: {limit: 10, desc: "block.height"}
    ) {
      amount(calculate: sum)
      sender {
        address
      }
      receiver {
        address
      }
      transaction {
        hash
      }
      block {
        timestamp {
          iso8601
        }
        height
      }
    }
  }
}

Variables

{
  "address": "0x5009317FD4F6F8FeEa9dAe41E5F0a4737BB7A7D5",
  "currency_id": "BNB",
  "since": "2025-02-10T00:00:00",
  "till": "2025-02-11T00:00:00",
  "network": "bsc"
}

Similar queries