Smart Contract Methods

Returns one call on Ethereum, where call to is 0xf61f…d6dc, currency smart contract is 0xf61f…d6dc and block date since 2025-04-17, sorted by count, highest first: chain ID, block date, call value, value in USD, signature name, signature signature, signature hash and 6 more fields.

By Nadia · saved 24 April 2025 · run 4 times · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $limit: Int, $token: String!, $from: String, $till: String) {
  EVM(dataset: realtime, network: $network) {
    Calls(
      where: {Block: {Date: {since: $from, till: $till}}, Call: {To: {is: $token}}}
      limit: {count: $limit}
      orderBy: {descendingByField: "count"}
    ) {
      ChainId
      Block {
        Date(maximum: Block_Date)
      }
      Call {
        Value
        ValueInUSD
        Signature {
          Name
          Signature
          SignatureHash
        }
      }
      internal_count: count(if: {Call: {Depth: {gt: 0}}})
      external_count: count(if: {Call: {Depth: {eq: 0}}})
      count
      senders: count(distinct: Call_From)
      txs: count(distinct: Transaction_From)
      average(of: Fee_SenderFee)
      average_usd: average(of: Fee_SenderFeeInUSD)
    }
    Transfers(
      limit: {count: 1}
      where: {Transfer: {Currency: {SmartContract: {is: $token}}}}
    ) {
      Transfer {
        Currency {
          Name
          SmartContract
          Symbol
        }
      }
    }
  }
}

Variables

{
  "limit": 10,
  "network": "eth",
  "from": "2025-04-17",
  "till": "2025-04-24",
  "token": "0xf61f24c2d93bf2de187546b14425bf631f28d6dc",
  "dateFormat": "%Y-%m-%d",
  "date_middle": "2025-04-20"
}

Similar queries