limit and offset parameters. limit controls how many results to return per request, and offset skips a number of rows from the beginning of the result set. To retrieve the next page, increment offset by the value of limit.
The following endpoints support pagination:
| Endpoint | Default limit | Max limit | Sortable |
|---|---|---|---|
transactions | 10 | 1000 | Yes |
actions | 10 | 1000 | Yes |
blocks | 10 | 1000 | Yes |
messages | 10 | 1000 | Yes |
traces | 10 | 1000 | Yes |
jetton/burns | 10 | 1000 | Yes |
jetton/transfers | 10 | 1000 | Yes |
jetton/wallets | 10 | 1000 | Yes |
nft/items | 10 | 1000 | Yes |
nft/transfers | 10 | 1000 | Yes |
multisig/orders | 10 | 1000 | Yes |
multisig/wallets | 10 | 1000 | Yes |
transactionsByMasterchainBlock | 10 | 1000 | Yes |
jetton/masters | 10 | 1000 | No |
nft/collections | 10 | 1000 | No |
dns/records | 100 | 1000 | No |
masterchainBlockShards | 10 | 1000 | No |
topAccountsByBalance | 10 | 1024 | No |
transactionsByMessage | 10 | 1000 | No |
vesting | 10 | 1000 | No |
Parameters
These parameters are shared across all paginated endpoints.| Parameter | Type | Required | Description |
|---|---|---|---|
limit | integer | Maximum number of rows to return. Defaults vary by endpoint (see table above). | |
offset | integer | Number of rows to skip from the beginning of the result set. Default is 0. | |
sort | string | Sort order: desc (default, newest first) or asc (oldest first). Only available on sortable endpoints. |
Pagination example
This example uses thetransactions endpoint, but the same limit and offset pattern applies to all paginated endpoints.
Fetch the first page
Send a request with Response (abbreviated):Three transactions returned, sorted by logical time in descending order (newest first).
account and limit. No offset is needed for the first page (it defaults to 0).Fetch the next page
Set Response (abbreviated):No overlap with the previous page. Offset pagination does not produce duplicates.
offset=3 to skip the first 3 results and get the next batch.Full pagination script
Full pagination script
Sorting
Sortable endpoints accept asort parameter with two values:
desc(default): newest results first, sorted by logical time (or UTC timestamp forblocks).asc: oldest results first.
sort=asc, the earliest transactions are returned first (from July 2023 for this account).
Sorting with jetton/walletsThe
jetton/wallets endpoint sorts by balance instead of logical time. Results may be inconsistent when paginating with limit and offset if balances change between requests.