Arguments
The arguments field allows us to fetch information about arguments of smart contract calls and evetns.
Here is an exmaple that demonstrates how to use arguments query:
{
ethereum(network: matic) {
arguments(
options: {desc: "block.timestamp.time", limit: 10, offset: 0}
date: {since: "2021-03-14"}
smartContractMethod: {is: "performUpkeep"}
smartContractAddress: {is: "0x7b3ec232b08bd7b4b3305be0c044d907b2df960b"}
) {
block {
timestamp {
time(format: "%Y-%m-%d %H:%M:%S")
}
height
}
transaction {
hash
}
argument {
name
}
value {
value
}
}
}
}
Filtering Arguments
any:argument: Filter by specific argument for smart contract method or eventargumentType: Filter by argument type for smart contract method or eventcallDepth: Filter by call depthcaller: Filter by address of the callerdate: Filter by selecting time in range, list or just timeexternal:height: Filter by height of the blockoptions: Filter returned data by ordering, limiting, and constraining it.reference:signatureType:smartContractAddress: Filter by smart contract addresssmartContractEvent: Filter by smart contract eventsmartContractMethod: Filter by smart contract methodtime: Filter by selecting time in range, list or just timetxFrom: Filter by address which created transactiontxHash: Filter by transaction hashvalue: Filter by argument value
The following are available fields for the arguments:
any: Used fororconditionargument: returns method or event argumentblock: returns information of blockcallDepth: returns depth of callcaller: returns information about callercount: returns aggregate count of argumentcountBigInt: returns aggregate count of argument inBigIntformatdate: returns date on which smart contract call or event happenedexpression: performs arithematic operation on fields in the query and returns value of the operationexternal: Is call external or internalindex:maximum: Aggregated and get maximum value for given argumentminimum: Aggregated and get minimum value for given argumentnumber: Covert into Numberreference:smartContract: returns information about smart contract being calledsmartContractSignature: returns signature of contract method or eventsuccess:transaction: returns transaction informationvalue: returns value of method or event argument
info
Sign up on our GraphQL IDE and get your Access Token, Read our guide on getting started.