TriportRPC

getTransactions

TON / https://triport.io/rpc/ton

Minimum tier: Pro

TON method guide

Last updated:

getTransactions returns transactions for one TON account in newest-first order. Each transaction has a required transaction ID; the schema also permits serialized data, fee, Unix time, inbound message, and outbound messages.

Pagination uses a pair, not an independent scalar cursor. To continue, take both lt and hash from the oldest transaction returned and send them together in the next request. to_lt supplies an optional lower logical-time boundary.

The archival flag is a routing hint for a measured deep-history server. It is not a promise of continuous history and does not change an unavailable old range into an empty successful response.

Parameters

getTransactions parameters
NameTypeRequiredDescription
addressTonAddressYes
limitintegerNo
ltLogicalTimeNo
hashHashNo
to_ltLogicalTimeNo
archivalbooleanNo

Returns

getTransactions return value
FieldType
resultarray

Examples

curl https://triport.io/rpc/ton \
  -X POST -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <api-key>' \
  -d '{"jsonrpc":"2.0","id":1,"method":"getTransactions","params":["<address>","<limit>","<lt>","<hash>","<to_lt>","<archival>"]}'
const res = await fetch("https://triport.io/rpc/ton", {
  method: "POST",
  headers: { "Content-Type": "application/json", Authorization: "Bearer <api-key>" },
  body: JSON.stringify({
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getTransactions",
  "params": [
    "<address>",
    "<limit>",
    "<lt>",
    "<hash>",
    "<to_lt>",
    "<archival>"
  ]
}),
});
const data = await res.json();
import requests
resp = requests.post(
    "https://triport.io/rpc/ton",
    headers={"Authorization": "Bearer <api-key>"},
    json={"jsonrpc":"2.0","id":1,"method":"getTransactions","params":["<address>","<limit>","<lt>","<hash>","<to_lt>","<archival>"]},
)
print(resp.json())

Usage

  1. Transport: HTTP (JSON-RPC).
  2. Chain: TON.
  3. Clusters: mainnet.
  4. Credit cost: 5 per call.

FAQ

What does getTransactions do?
Returns an account's transactions newest-first with paired cursor pagination.
How many credits does getTransactions cost?
getTransactions costs 5 credit(s) per call on Triport by default.
Is getTransactions available over WebSocket?
getTransactions is an HTTP JSON-RPC method.