Argument Query

Returns the latest 10 arguments on Ethereum and bsc_testnet, where smart contract address is 0xCA7b…C9A0 and smart contract event is PlayerUpdated: block height, call depth, any of argument value and transaction hash.

By gaurav · saved 20 December 2021 · run 3 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $smartContractAddress: String!, $startBlock: Int!, $endBlock: Int!, $limit: Int!, $offset: Int!) {
  network: ethereum(network: $network) {
    players: arguments(
      smartContractAddress: {is: $smartContractAddress}
      options: {desc: ["block.height","callDepth"] limit: $limit, offset: $offset}
      smartContractEvent: {is: "PlayerUpdated"}
      height: {between: [$startBlock, $endBlock]}
    ) {
      block{
        height
      }
      callDepth
      address: any(of: argument_value, argument: {is: "user"})
      roundId: any(of: argument_value, argument: {is: "roundId"})
      depositAmount: any(of: argument_value, argument: {is: "depositAmount"})
      depositTickets: any(of: argument_value, argument: {is: "depositTickets"})
      holdAmount: any(of: argument_value, argument: {is: "holdAmount"})
      holdTickets: any(of: argument_value, argument: {is: "holdTickets"})
      tickets: any(of: argument_value, argument: {is: "tickets"})
      transaction {
        hash
      }
    }
  }
}

Variables

{
  "network": "bsc_testnet",
  "smartContractAddress": "0xCA7bE9E0430E2FA2E71dff14C7BE117c8CCdC9A0",
  "startBlock": 15087934,
  "endBlock": 15114731,
  "limit": 10,
  "offset": 0
}

Similar queries