GG

Returns the latest 10 smart contract calls on Ethereum, where smart contract address is 0x4d5F…14E8, smart contract method is 0x00000000 and date since 2023-08-01: timestamp time, block height, smart contract method name and transaction hash.

By Nitin Jakhar · saved 23 October 2023 · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $method: String!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    smartContractCalls(
      smartContractMethod: {is: $method}
      options: {desc: "block.timestamp.time", limit: $limit, offset: $offset}
      date: {since: $from, till: $till}
      any: {smartContractAddress: {is: "0x4d5F47FA6A74757f35C14fD3a6Ef8E3C9BC514E8"}}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      smartContractMethod {
        name
      }
      transaction {
        hash
      }
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "ethereum",
  "method": "0x00000000",
  "from": "2023-08-01",
  "till": "2023-10-23T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries