Copy of Total Address Statisticsmajid

( separate queries )

Returns transactions and transfers on Ethereum, where transaction from is 0x475e…8555, transfer receiver is 0x475e…8555 and transfer sender is 0x475e…8555: sum of fee sender fee, sum of fee sender fee in USD, count, chain ID, block time, unique of block date, sum of transfer amount and sum of transfer amount in USD.

By Majid2 · saved 25 February 2025 · Bitquery API v1

What it returns

Filters

The query

query ($network: evm_network, $address: String!) {
  EVM(dataset: combined, network: $network) {
    fee: Transactions(where: {Transaction: {From: {is: $address}}}) {
      tx_fee: sum(of: Fee_SenderFee)
      tx_fee_usd: sum(of: Fee_SenderFeeInUSD)
      tx_count: count
    }
    currencies_reciiver: Transfers(where: {Transfer: {Receiver: {is: $address}}}) {
      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)
      r_amount_usd: sum(of: Transfer_AmountInUSD)
    }
    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)
      s_amount_usd: sum(of: Transfer_AmountInUSD)
    }
  }
}

Variables

{
  "network": "eth",
  "address": "0x475ee07c133d0caae8e029d0acededd97aab8555"
}

Similar queries