Total Address Statistics

( separate queries )

Returns 10 transactions and transfers on Ethereum, where transaction from is 0xcf52…00e1, transfer receiver is 0xcf52…00e1 and transfer sender is 0xcf52…00e1: sum of fee sender fee, count, chain ID, block time, unique of block date and sum of transfer amount.

By Nadia · saved 25 August 2023 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $limit: Int, $address: String!) {
  EVM(dataset: combined, network: $network) {
    fee: Transactions(
      where: {Transaction: {From: {is: $address}}}
      limit: {count: $limit}
    ) {
      tx_fee: sum(of: Fee_SenderFee)
      tx_count: count
    }
    currencies_reciiver: Transfers(
      where: {Transfer: {Receiver: {is: $address}}}
      limit: {count: $limit}
    ) {
      ChainId
      r_currencies: count(distinct: Transfer_Currency_SmartContract)
      Block {
        r_from: Time(minimum: Block_Time)
        r_to: Time(maximum: Block_Time)
      }
      r_days: uniq(of: Block_Date)
    }
    receiver: Transfers(
      where: {Transfer: {Currency: {Native: true}, Receiver: {is: $address}}}
    ) {
      r_amount: sum(of: Transfer_Amount)
    }
    currencies_sender: Transfers(where: {Transfer: {Sender: {is: $address}}}) {
      ChainId
      s_currencies: count(distinct: Transfer_Currency_SmartContract)
      Block {
        s_from: Time(minimum: Block_Time)
        s_to: Time(maximum: Block_Time)
      }
      s_days: uniq(of: Block_Date)
    }
    sender: Transfers(
      where: {Transfer: {Currency: {Native: true}, Sender: {is: $address}}}
    ) {
      s_amount: sum(of: Transfer_Amount)
    }
  }
}

Variables

{
  "limit": 10,
  "network": "eth",
  "address": "0xcf523864704a502d36e8e24cd73a2aee6cda00e1"
}

Similar queries