Avalanche method calls

Returns the latest 10 smart contract calls on Ethereum and Avalanche, where caller is 0x3fc9…7fad, smart contract method is swap and date since 2023-12-01: timestamp time, block height, smart contract method name, signature hash, address address, annotation, transaction hash and 2 more fields.

By Aparna Sridhar · saved 19 December 2023 · run 4 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    smartContractCalls(
      options: {desc: "block.timestamp.time", limit: $limit, offset: $offset}
      date: {since: $from, till: $till}
      caller: {is: "0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad"}
      smartContractMethod: {is: "swap"}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      smartContractMethod {
        name
        signatureHash
      }
      smartContract {
        address {
          address
          annotation
        }
      }
      transaction {
        hash
      }
      external
      gasValue
      gas_value_usd: gasValue(in: USD)
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "avalanche",
  "from": "2023-12-01",
  "till": "2023-12-19T23:59:59"
  }

Similar queries