getTransactions
TON / https://triport.io/rpc/ton
Minimum tier: Pro
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
| Name | Type | Required | Description |
|---|---|---|---|
| address | TonAddress | Yes | |
| limit | integer | No | |
| lt | LogicalTime | No | |
| hash | Hash | No | |
| to_lt | LogicalTime | No | |
| archival | boolean | No |
Returns
| Field | Type |
|---|---|
| result | array |
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
- Transport: HTTP (JSON-RPC).
- Chain: TON.
- Clusters: mainnet.
- 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.