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 · run 1 time · 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"}
      # argument: {in: "lpToken"}
      # value: {is: "0x906a305a5d4344cd329928a1a76cb2f4b4f55cf8"}
    ) {
      block {
        height
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
      }
      arguments{
        argument
        value
      }
      
      
      # index
      # lpToken: any(of: argument_value, argument: {is: "lpToken"})
      # user: any(of: argument_value, argument: {is: "user"})
      # amount: any(of: argument_value, argument: {is: "amount"})
      # lockDate: any(of: argument_value, argument: {is: "lockDate"})
      # unlockDate: any(of: argument_value, argument: {is: "unlockDate"})
      transaction {
        hash
        txFrom {
          address
        }
      }
    }
  }
}

Similar queries