Copy of s2w selectwhere issue shortened

Returns 1000 calls on Ethereum, where call to is 0x83f2…beea, transaction hash is 0xa5e5…0106 or 0x4a27…c984 and block time since 2025-11-24: call index, to, from, signature name, signature signature, signature hash, parsed and 13 more fields.

By Aleksey · saved 2 December 2025 · Bitquery API v2

What it returns

Filters

The query

query MyQuery($tx_hashes: [String!], $address: String, $start_time: DateTime, $end_time: DateTime, $limit: Int = 1000) {
  EVM(dataset: archive, network: eth) {
    Calls(
      where: {
        Call: {
          To: {
            is:  $address
          }
        }
        Transaction: {Hash: {in: $tx_hashes}}, Block: {Time: {since: $start_time, till: $end_time}}}
      limit: {count: $limit}
    ) {
      Call {
        Index
        To
        From
        Signature {
          Name
          Signature
          SignatureHash
          Parsed
          Abi
        }
        Input
      }
      Arguments {
        Name
        Index
        Type
        Value {
          ... on EVM_ABI_Integer_Value_Arg {
            integer
          }
          ... on EVM_ABI_String_Value_Arg {
            string
          }
          ... on EVM_ABI_Address_Value_Arg {
            address
          }
          ... on EVM_ABI_BigInt_Value_Arg {
            bigInteger
          }
          ... on EVM_ABI_Bytes_Value_Arg {
            hex
          }
          ... on EVM_ABI_Boolean_Value_Arg {
            bool
          }
        }
      }
      Transaction {
        Hash
        Time
      }
    }
  }
}

Variables

{
  "tx_hashes": [
    "0xa5e5edf014c50ba10aa49a90de9895259b03d2a43aba054aba9138cc86060106",
    "0x4a27cc900e803644cb6d774f3d83c74617366cd82758eeb61c76ab88f9a3c984"
  ],
  "address": "0x83f20f44975d03b1b09e64809b757c47f942beea",
  "limit": 1000,
  "start_time": "2025-11-24T23:03:35Z",
  "end_time": "2025-11-26T13:01:59Z"
}

Similar queries