smart contract event api

Returns the latest 50 smart contract events on Ethereum, where smart contract address is 0x663A…b214 and smart contract event is onDeposit: block height, timestamp time, argument, arguments value, transaction hash and tx from address.

By gaurav · saved 18 May 2023 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    smartContractEvents(
      options: {desc: ["block.height"], limit: 50}
      smartContractAddress: {in: "0x663A5C229c09b049E36dCc11a9B0d4a8Eb9db214"}
      smartContractEvent: {is: "onDeposit"}
    ) {
      block {
        height
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
      }
      arguments {
        argument
        value
      }
      transaction {
        hash
        txFrom {
          address
        }
      }
    }
  }
}

Similar queries