Fetch Event

Returns the latest arguments on Ethereum and BNB Chain, where smart contract address is 0x and smart contract event is RoleGranted: block height, caller address, transaction hash and any of argument value.

By elonduckk · saved 30 March 2022 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    arguments(
      options: {desc: "block.height"}
      smartContractAddress: {is: "0x"}
      smartContractEvent: {in: ["RoleGranted"]}
    ) {
      block {
        height
      }
      caller {
        address
      }
      transaction {
        hash
      }
      
			role: any(of: argument_value, argument: {is: "role"})
      account: any(of: argument_value, argument: {is: "account"})
      sender: any(of: argument_value, argument: {is: "sender"})
    }
  }
}

Similar queries