Tron - Tatum API

Get all transactions for a TRON account

/v3/tron/transaction/account/{address}

5 credits per API call

Get all transactions for a TRON account.

This API returns up to 200 transactions in one API call. If there are more than 200 transactions for the TRON account, the response body will contain the next parameter with the fingerprint of the transaction that follows the last (200th) transaction in the returned list.

To get the next 200 transactions, make another call using this API, but this time add the next parameter the endpoint URL and set it to the transaction fingerprint from the next parameter in the response, for example:

https://api.tatum.io/v3/tron/transaction/account/{address}?next=81d0524acf5967f3b361e03fd7d141ab511791cd7aad7ae406c4c8d408290991

get/v3/tron/transaction/account/{address}

Request

  • Base URL
    https://api.tatum.io
  • URL
    https://api.tatum.io/v3/tron/transaction/account/{address}
  • Auth
    API key in header x-api-key

Path parameters

addressstring required
Example:TGDqQAP5bduoPKVgdbk7fGyW4DwEt3RRn8

The address of the TRON account to get all transactions for

Query parameters

nextstring
Example:81d0524acf5967f3b361e03fd7d141ab511791cd7aad7ae406c4c8d408290991

The fingerprint of the transaction that follows the last (200<sup>th</sup>) transaction in the returned list of transactions. Use it to get the next 200 transactions for the specified account (for more information, see the description of this API).

onlyConfirmedboolean

If true, only confirmed transactions are returned

onlyUnconfirmedboolean

If true, only unconfirmed transactions are returned

onlyToboolean

If true, only transactions to this address are returned

onlyFromboolean

If true, only transactions from this address are returned

orderBy'block_timestamp,asc' | 'block_timestamp,desc'
Example:block_timestamp,desc

Order of the returned transactions

minTimestampnumber
Example:1674416039000

Minimum block_timestamp, default is 0

maxTimestampnumber
Example:1674416039000

Maximum block_timestamp, default is now

Response

OK

nextstring

If present, there are more transactions for the TRON account than the 200 transactions returned in the response, and this parameter specifies the fingerprint of the transaction that follows the last (200<sup>th</sup>) transaction in the returned list of transactions. Use it to get the next 200 transactions for the specified account (for more information, see the description of this API).

Example response

{
  "next": "81d0524acf5967f3b361e03fd7d141ab511791cd7aad7ae406c4c8d408290991",
  "transactions": [
    {
      "ret": [
        {
          "contractRet": "SUCCESS"
        }
      ],
      "signature": [
        "91fa5d81f9578970d21fdcde4ebb849674d437b62774f34e8d9e4cb50960c0031362cbcb649553b1f5f9daf19495ae46e517d4401172b5e53bb06bfe6896e2e300"
      ],
      "blockNumber": 11223344,
      "txID": "24dd2f121a24516f22df78adf1ccc32119e3edb7760297f76a925b879f2baa98",
      "rawData": {
        "contract": [
          {
            "parameter": {
              "value": {
                "data": "0x000002e917e68b4e",
                "amount": 1000000,
                "owner_address": "418632237fd33f62c549ee044dd3da779aba947dcc",
                "to_address": "41a614f803b6fd780986a42c78ec9c7f77e6ded13c",
                "ownerAddressBase58": "TNCmcTdyrYKMtmE1KU2itzeCX76jGm5Not",
                "toAddressBase58": "TRwS7apsNdRGzMBfhB2hVC4RhqfubUYZ8P"
              },
              "type_url": "type.googleapis.com/protocol.TriggerSmartContract"
            },
            "type": "TriggerSmartContract"
          }
        ],
        "ref_block_bytes": 4946,
        "expiration": 1610067216000,
        "timestamp": 1609980816000
      }
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.