Copy of Smart Contract Statistics (dataset combain)

Returns one call on BNB Chain, where call to is 0xf048…573c and currency smart contract is 0xf048…573c: chain ID, block time, count, sum of fee sender fee, sum of fee sender fee in USD, sum of fee burnt, sum of fee burnt in USD and 5 more fields.

By Elie · saved 3 March 2025 · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $address: String!) {
  EVM(dataset: archive, network: $network) {
    Calls(where: {Call: {To: {is: $address}}}) {
      ChainId
      Block {
        Time(maximum: Block_Time)
      }
      days: count(distinct: Block_Date)
      internal_count: count(if: {Call: {Depth: {gt: 0}}})
      external_count: count(if: {Call: {Depth: {eq: 0}}})
      count
      sender_fee: sum(of: Fee_SenderFee)
      sender_fee_usd: sum(of: Fee_SenderFeeInUSD)
      burnt: sum(of: Fee_Burnt)
      burnt_usd: sum(of: Fee_BurntInUSD)
      reward: sum(of: Fee_MinerReward)
      reward_usd: sum(of: Fee_MinerRewardInUSD)
    }
    Transfers(
      where: {Transfer: {Currency: {SmartContract: {is: $address}}}}
      limit: {count: 1}
    ) {
      ChainId
      Transfer {
        Currency {
          Name
          Symbol
          SmartContract
        }
      }
    }
  }
}

Variables

{"network":"bsc","address":"0xf04837b705b7f4b1931f95757f4a473cc9b4573c","mempool":false}

Similar queries