Query SmartContract Events for a Transaction Hash

Returns the latest 10 smart contract calls on Ethereum and BNB Chain, where tx hash is 0x60c6…9ef3 and date since 2021-03-01: timestamp time, block height, smart contract method name, signature hash, contract type, caller address, annotation and 3 more fields.

By richard.pinedo · saved 3 March 2021 · run 3 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $address: String!, $limit: Int!, $offset: Int!, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    smartContractCalls(
      options: {desc: "block.timestamp.time", limit: $limit, offset: $offset}
      date: {since: "2021-03-01", till: $till}
      txHash: {is: $address}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      smartContractMethod {
        name
        signatureHash
      }
      smartContract {
        contractType
      }
      address: caller {
        address
        annotation
      }
      transaction {
        hash        
      }
      gasValue
      external
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "bsc",
  "address": "0x60c64f06efe45d7a61b625449c783a63f048cd1a74587cb22d8a9e81e17f9ef3",
  "from": null,
  "till": null,
  "dateFormat": "%Y-%m"
}

Similar queries