Total amount sent + Received + Current Balance

Returns address details and transfers on Ethereum and Avalanche, where address is 0xb1be…ba61, sender is 0xb1be…ba61 and receiver is 0xb1be…ba61: balance and amount.

By lukas · saved 21 July 2023 · run 4 times · Bitquery API v1

What it returns

Filters

The query

query MyQuery {
  ethereum(network: avalanche) {
    address(address: {is: "0xb1be473297660fcb4a3a92201b3e6bf788b0ba61"}) {
      balance
    }
    send_amount: transfers(
      sender: {is: "0xb1be473297660fcb4a3a92201b3e6bf788b0ba61"}
      currency: {is: "AVAX"}
    ) {
      amount(calculate: sum)
    }
    receive_amount: transfers(
      receiver: {is: "0xb1be473297660fcb4a3a92201b3e6bf788b0ba61"}
      currency: {is: "AVAX"}
    ) {
      amount(calculate: sum)
    }
  }
}

Similar queries