Total Address Statistics bug

Returns 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, sum of transfer amount, block time and unique of block date.

By Aleksey · saved 2 August 2023 · run 2 times · Bitquery API v2

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_count: count
    }
    receiver: Transfers(where: {Transfer: 
      {
        Receiver: {is: $address}}}) {
      r: count
      ChainId
      r_amount: sum(of: Transfer_Amount, if: {Transfer: {Currency: {Native: true}}})
      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)
    }
    sender: Transfers(where: {Transfer: {Sender: {is: $address}}}) {
      ChainId
      s: count
      s_amount: sum(of: Transfer_Amount, if: {Transfer: {Currency: {Native: true}}})
      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)
    }
  }
}

Variables

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

Similar queries