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.
What it returns
- block height
- call depth
- any of argument value
- transaction hash
Filters
- smart contract address is 0xCA7b…C9A0
- smart contract event is PlayerUpdated
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
- ArgumentFinal · Bsc testnet · arguments
- ravenargument · Bsc testnet · arguments
- Test SmartContract Events · Bsc testnet · arguments
- https://community.bitquery.io/t/cannot-get-argument-value-of-event/442/3 · Bsc testnet · arguments
- https://community.bitquery.io/t/cannot-get-argument-value-of-event/442/2 · Bsc testnet · arguments