The arguments field allows us to fetch details about arguments of smart contract calls and events.
Here is an example that demonstrates how to use arguments query:
{
tron {
arguments(
date: {after: "2023-07-22"}
options: {desc: "block.timestamp.iso8601", limit: 10}
) {
argument {
name
type
}
block {
height
timestamp {
iso8601
}
}
owner {
address
}
receiver {
address
}
smartContract {
address {
address
}
contractType
}
txHash
txIndex
}
}
}
Filtering Arguments
any:arguments: filter by method or event argumentargumentType: filter by argument typecallDepth: filter by depth of the calldate: filter by selecting date in range, list or just dateexternal: filter by if call is external or internalheight: filter by block heightoptions: filter returned data by ordering, limiting, and constraining it.owner: filter by owner addressreceiver: filter by receiver addressreference: filter by address value of method or event argumentsignatureType: filter by signature of contract method or eventsmartContractAddress: filter by smart contract addresssmartContractEvent: filter by name of the smart contract eventsmartContractMethod: filter by name of the smart contract methodtime: filter by selecting time in range, list or jus timetxHash: filter by hash of transactiontxIndex: filter by transaction index in the blockvalue: filter by value of the argument
any:argument: returns method or event argumentblock: returns block where transaction is includedcallDepth: returns depth of callcount: returns aggregate count of argumentscountBigInt: returns count asBigIntdate: returns date of transactionexpression: performs arithematic operation on fields in the query and returns value of the operationexternal: returns if transaction is external or internal callindex: returns index of transaction in the blockmaximum: returns maximum of selected measurable fieldminimum: returns minimum of selected measurable fieldnumber:owner: returns owner addressreceiver: returns transaction receiverreference: returns address value of method or event argumentsmartContract: returns smart contract being calledsmartContractSignature: returns contract method or eventtxHash: returns transaction hashtxIndex: returns transaction index in blockvalue: returns value of method or event argument