https://community.bitquery.io/t/cannot-get-argument-value-of-event/442/3

Returns the latest arguments on Ethereum and bsc_testnet, where smart contract address is 0x0F41…8DBA, argument is roundId and smart contract event is UserJoined: block height, any of argument value and transaction hash.

By Sayon · saved 27 August 2021 · Bitquery API v1

What it returns

Filters

The query

query MyQuery {
  ethereum(network: bsc_testnet) {
    arguments(
      smartContractAddress: {is: "0x0F41aC3258123b1998225aFc950E543612128DBA"}
      options: {desc: "block.height", limitBy: {each: "roundId", limit: 5}}
      any: {argument: {is: "roundId"}}
      smartContractEvent: {is: "UserJoined"}
    ) {
      block {
        height
      }
      roundId: any(of: argument_value, argument: {is: "roundId"})
      # amount: any(of: argument_value)
      amount: any(of: argument_value, argument: {is: "amount"})
      transaction {
        hash
      }
    }
  }
}

Similar queries