Skip to main content
POST
/
api
/
v2
/
getTransactions
Get transactions
curl --request POST \
  --url https://toncenter.com/api/v2/getTransactions \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "address": "<string>",
  "lt": "<string>",
  "hash": "<string>",
  "to_lt": "<string>",
  "archival": "<string>",
  "limit": "<string>"
}
'
{
  "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>",
      "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>"
      },
      "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>"
        }
      ]
    }
  ],
  "@extra": "<string>"
}

Authorizations

X-API-Key
string
header
required

Body

application/json

Request to fetch transaction history for an account with optional pagination and filtering parameters.

address
string
required

The account address in user-friendly format.

lt

Logical time of this event. A globally unique counter that orders all blockchain events. Higher values are more recent.

hash
string

Unique identifier hash for this object.

to_lt

Stop returning items at this logical time.

archival

Whether to use archival nodes for old data.

limit

Maximum number of items to return.

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.