Skip to main content
GET
/
api
/
v2
/
getTransactions
Get transactions
curl --request GET \
  --url https://toncenter.com/api/v2/getTransactions \
  --header 'X-API-Key: <api-key>'
{
  "ok": true,
  "result": [
    {
      "@type": "ext.transaction",
      "address": {
        "@type": "accountAddress",
        "account_address": "<string>"
      },
      "account": "<string>",
      "utime": 123,
      "data": "<string>",
      "transaction_id": {
        "@type": "internal.transactionId",
        "lt": "<string>",
        "hash": "<string>"
      },
      "fee": "<string>",
      "storage_fee": "<string>",
      "other_fee": "<string>",
      "out_msgs": [
        {
          "@type": "ext.message",
          "hash": "<string>",
          "source": "<string>",
          "destination": "<string>",
          "value": "<string>",
          "extra_currencies": [
            {
              "@type": "extraCurrency",
              "id": 123,
              "amount": "<string>"
            }
          ],
          "fwd_fee": "<string>",
          "ihr_fee": "<string>",
          "created_lt": "<string>",
          "body_hash": "<string>",
          "msg_data": {
            "@type": "msg.dataRaw",
            "body": "<string>",
            "init_state": "<string>"
          },
          "message": "<string>",
          "message_decode_error": "<string>"
        }
      ],
      "in_msg": {
        "@type": "ext.message",
        "hash": "<string>",
        "source": "<string>",
        "destination": "<string>",
        "value": "<string>",
        "extra_currencies": [
          {
            "@type": "extraCurrency",
            "id": 123,
            "amount": "<string>"
          }
        ],
        "fwd_fee": "<string>",
        "ihr_fee": "<string>",
        "created_lt": "<string>",
        "body_hash": "<string>",
        "msg_data": {
          "@type": "msg.dataRaw",
          "body": "<string>",
          "init_state": "<string>"
        },
        "message": "<string>",
        "message_decode_error": "<string>"
      }
    }
  ],
  "@extra": "<string>"
}

Authorizations

X-API-Key
string
header
required

Query Parameters

address
string
required

The account address to query. You can use any format: raw (0:abcd), base64 (EQ), or base64url (UQ). The API automatically detects and converts the format. A TON account address. Accepts raw format (workchain:hex like 0:abc...), base64 bounceable (EQ...), base64 non-bounceable (UQ...), or base64url. All formats are automatically detected.

limit
integer<int64>
default:10

Maximum number of transactions to return. The default is 10. For accounts with many transactions, use pagination (lt + hash) to fetch more.

lt
string

Starting point for transaction history. Pass the lt from last_transaction_id to start from the most recent, or from a specific transaction to continue pagination.

hash
string

Transaction hash to start from A 256-bit hash value. Accepts either hex format (64 characters) or base64 format (44 characters). Used for block hashes, transaction hashes, and cryptographic proofs.

to_lt
string
default:0

Stop fetching when reaching this logical time. Use this to limit the time range of returned transactions. Set to 0 (default) to fetch all available history.

archival
boolean
default:false

Request data from archival nodes. Regular nodes only keep recent history (about 2 days). Set to true when querying old transactions or historical state. Archival requests may be slower.

Response

OK

Response containing list of account transactions.

ok
boolean
default:true
required

Indicates if the request succeeded. If false, check the error field for details.

result
object[]
required

The response data. Only present when ok is true.

@extra
string

Optional request ID that you can pass in the request and receive back in the response. Useful for matching async responses.