A limited number of methods inside Ankr Advanced API support pagination.
Pagination parameters and supporting methods
They take parameters pageToken and pageSize.
- pageSize parameter defines the number of entries to be returned per page per single API call.
- pageToken parameter defines a starting point in listing and allows to continue listing from the last returned object by a previous API call identified by nextPageToken response value. You should never assume that all the objects have been listed until nextPageToken value returned by request is empty.
These methods are:
- ankr_getAccountBalance
- ankr_getTokenHolders
- ankr_getTokenHoldersCount
- ankr_getLogs
- ankr_getNftTransfers
- ankr_getTokenTransfers
- ankr_getTransactionsByAddress
- ankr_getNFTHolders
- ankr_getNFTsByOwner
pageSize values
When making calls, refer to the maximum and default pageSize values:
- ankr_getAccountBalance — all (max) / all (default)
- ankr_getTokenHolders — 10000 (max) / 10000 (default)
- ankr_getTokenHoldersCount — 10000 (max) / 10000 (default)
- ankr_getLogs — 10000 (max) / 1000 (default)
- ankr_getNftTransfers — 10000 (max) / 100 (default)
- ankr_getTokenTransfers — 10000 (max) / 100 (default)
- ankr_getTransactionsByAddress — 10000 (max) / 100 (default)
- ankr_getNFTHolders — 10000 (max) / 1000 (default)
- ankr_getNFTsByOwner — 50 (max) / 10 (default)