The transfers field allows us to fetch token transfer details from Tron blockchain.
Here is an example that demonstrates how to fetch transfers from a particular block:
{
tron {
transfers(
height: {is: 53420250}
) {
amount
block {
timestamp {
iso8601
}
}
currency {
address
name
}
receiver {
address
}
sender {
address
}
txHash
}
}
}
Filtering Transfer
amount: filter by amount of token transferredany:contractType: filter by contract typecurrency: filter by currency addressdate: filter by date of the transferentityId: filter by ERC-721 entity idexternal: filter by if call is external or internalheight: filter by block where transaction is includedoptions: filter returned data by ordering, limiting, and constraining itreceiver: filter by address of receiversender: filter by address of sendersuccess: filter by success of transactiontime: filter by time of transactiontxFrom: filter by address that executed the transactiontxHash: filter by transaction hashtxTo: filter by address where transaction was sent
amount: returns transfer amountany:block: returns block where transaction is includedcontractType: returns contract typecount: returns count and other metricscountBigInt: returns count and other metrics as BigIntcurrency: returns currency of transferdate: returns date of transactionenergyUsageTotal: returns total energy usage for transferentityId: returns ERC-721 entity Idexpression: performs arithematic operation on fields in the query and returns value of the operationexternal: returns if transfer is external or internalfee: returns fee consumed for transfermaximum: returns maximum of selected measurable field of Tron Transfersminimum: returns minimum of selected measurable field of Tron TransfersnetUsage:receiver: returns address of transfer receiversender: returns address of transfer sendersuccess: returns success of transfertxFrom: returns transaction from addresstxHash: returns transaction hashtxTo: returns transaction to address