It's quiet simple just make a GET
request to the following url:
https://api.trongrid.io/v1/accounts/{wallet-address}/transactions/{standard}?&contract_address={contract-address}
Replace {wallet-address}
with your desired tron wallet address.
Replace {standard}
with the standard of token that you want e.g. trc20
.
Replace {contract_address}
with the address of the contract of your target token e.g. TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t
(USD Tether).
Here are all possible parameters :
only_confirmed (boolean) :
true | false. If false, it returns both confirmed and unconfirmed transactions. If no param is specified, it returns both confirmed and unconfirmed transactions. Cannot be used at the same time with only_unconfirmed param.
only_unconfirmed (boolean) :
true | false. If false, it returns both confirmed and unconfirmed transactions. If no param is specified, it returns both confirmed and unconfirmed transactions. Cannot be used at the same time with only_confirmed param.
limit (int32) :
number of transactions per page, default 20, max 200
fingerprint (string) :
fingerprint of the last transaction returned by the previous page; when using it, the other parameters and filters should remain the same
order_by (string) :
block_timestamp,asc | block_timestamp,desc (default)
min_timestamp (date-time) :
minimum block_timestamp, default 0
max_timestamp (date-time) :
maximum block_timestamp, default now
contract_address (string) :
contract address in base58 or hex
only_to (boolean) :
true | false. If true, only transactions to this address, default: false
only_from (boolean)
true | false. If true, only transactions from this address, default: false