test for save

Returns one call on Arbitrum, where call to is 0x82af…bab1, call from is 0xc873…448d and currency smart contract is 0x82af…bab1: chain ID, block time, block number, sender fee, signature name, signature signature, signature hash and 6 more fields.

By Nadia · saved 30 January 2024 · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $limit: Int, $callFrom: String, $address: String, $from: String, $till: String) {
  EVM(dataset: combined, network: $network) {
    Calls(
      where: {Call: {To: {is: $address}, From: {is: $callFrom}}, Block: {Date: {since: $from, till: $till}}}
      limit: {count: $limit}
    ) {
      ChainId
      Block {
        Time
        Number
      }
      Fee {
        SenderFee
      }
      Call {
        Signature {
          Name
          Signature
          SignatureHash
        }
        caller: From
        smart_contract: To
      }
      Transaction {
        Hash
      }
    }
    Transfers(
      limit: {count: 1}
      where: {Transfer: {Currency: {SmartContract: {is: $address}}}}
    ) {
      Transfer {
        Currency {
          Name
          SmartContract
          Symbol
        }
      }
    }
  }
}

Variables

{
  "limit": 10,
  "network": "arbitrum",
  "address": "0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
  "callFrom": "0xc873fecbd354f5a56e00e710b90ef4201db2448d",
  "from": "2024-01-05",
  "till": "2024-01-05",
  "dateFormat": "%Y-%m-%d",
  "date_middle": "2024-01-26"
}

Similar queries