v2 query

Returns calls, sorted by block time: block time, block number, from, signature name, to, sender fee and transaction hash.

By gaurav · saved 15 April 2025 · run 2 times · Bitquery API v2

What it returns

The query

query ($network: evm_network!, $address: String!, $limit: Int!, $offset: Int!, $from: DateTime, $fromBlock: String) {
  EVM(network: $network, dataset: archive) {
    Calls(
      where: {Call: {From: {is: $address}}, Block: {Time: {since: $from}, Number: {gt: $fromBlock}}}
      orderBy: {ascending: Block_Time}
      limit: {count: $limit, offset: $offset}
    ) {
      Block {
        Time
        Number
      }
      Call {
        wallet: From
        Signature {
          Name
        }
        address: To
      }
      Fee {
        SenderFee
      }
      Transaction {
        Hash
      }
    }
  }
}

Similar queries