Transactions for any smart contract

Returns the latest 10000 smart contract calls on Ethereum and Polygon, where smart contract address is 0x385e…54a7, date since 2022-12-14 and date till 2022-12-14: timestamp time, block height, smart contract method name, caller address, transaction hash, gas value and external.

By Arun · saved 21 December 2022 · run 25 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $address: String!, $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}
      smartContractAddress: {is: $address}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      smartContractMethod {
        name
      }
      address: caller {
        address
      }
      transaction {
        hash
      }
      gasValue
      gas_value_usd: gasValue(in: USD)
      external
    }
  }
}

Variables

{
  "limit": 10000,
  "offset": 0,
  "network": "matic",
  "address": "0x385eeac5cb85a38a9a07a70c73e0a3271cfb54a7",
  "from": "2022-12-14T00:00:00",
  "till": "2022-12-14T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries