Smart Contract Events Backed Finance’s

Returns one call on Arbitrum, where call to is 0xCA30…5Fb5 and currency smart contract is 0xCA30…5Fb5: chain ID, block time, count, sum of fee sender fee, sum of fee burnt, sum of fee miner reward, currency name and 2 more fields.

By Abhishek Tripathi · saved 18 July 2024 · 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)
      burnt: sum(of: Fee_Burnt)
      reward: sum(of: Fee_MinerReward)
    }
    Transfers(
      where: {Transfer: {Currency: {SmartContract: {is: $address}}}}
      limit: {count: 1}
    ) {
      ChainId
      Transfer {
        Currency {
          Name
          Symbol
          SmartContract
        }
      }
    }
  }
}

Variables

{
  "network":"arbitrum",
  "address":"0xCA30c93B02514f86d5C86a6e375E3A330B435Fb5"
}

Similar queries