Pagination
List endpoints use cursor-based pagination. Each response includes alinks object with URLs for navigating between pages.
How it works
- Make your initial request without any page parameter
- Check
links.nextin the response - if present, there are more results - Follow the
links.nextURL directly to get the next page - Repeat until
links.nextis absent
Response with pagination
page[size]:
Iterating through all pages
Filtering
Filter parameters use thefilter[field] syntax. Pass multiple values as comma-separated:
chain_ids, position_types, operation_types, trash, search_query, and fungible_ids. Each endpoint documents its available filters and accepted values in the relevant API reference page, such as wallet positions, wallet transactions, or fungibles search. For spam filtering behavior, see the spam filtering guide.
Keep the request URL short. Filters are applied server-side and travel in the query string, so a wide filter set (many chain IDs, many fungible IDs) can produce a very long URL. Stay under 2000 characters, which is safe across virtually every combination of client and server. Past that, requests can be truncated or rejected before they reach the API. Split a large filter list across several requests instead.
Sorting
Some endpoints support asort parameter. Prefix with - for descending order:
On wallet positions, use
sort=value (the default) to get the most valuable positions first. Positions without a reliable price have value: null and sort last.Currency
Most endpoints that return monetary values accept acurrency parameter. Default is usd.
eth/btc. See any currency-aware endpoint, such as wallet positions, for the full list.