Smart Contract Methods

Returns one call on Ethereum, where call to is 0x9522…afe5 and currency smart contract is 0x9522…afe5, 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 28 April 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $limit: Int, $token: String!) {
  EVM(dataset: realtime, network: $network) {
    Calls(
      where: {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",
  "token": "0x95222290dd7278aa3ddd389cc1e1d165cc4bafe5"
}

Similar queries