Skip to main content

Why cursor-based pagination

Cursor-based pagination returns a small, ordered slice of results plus an opaque token you pass back to get the next slice. Compared to offset-based pagination, cursors are typically more consistent and performant under concurrent writes and large datasets.
Use the cursor returned by the API as-is. Do not build or parse cursors on the client.

How it works

  • Request parameters
    • page_size โ€” number of items per page: 1 to 10, default 10. Block MEV Bids accepts 1 to 200, default 25. Larger values return a 400 error.
    • cursor โ€” pass the string returned in paging.next_cursor from the previous response to load the next page.
  • Response fields
    • paging.next_cursor โ€” present only when there is more data to fetch. If itโ€™s missing or empty, youโ€™ve reached the end.
Keep all filters and sort parameters identical for every page in a pagination sequence. Changing them mid-stream can lead to duplicates or gaps.

Example: Validators list

First page (no cursor):
Response (excerpt):
Next page (use paging.next_cursor from the previous response):
Response (excerpt):
Some endpoints require additional filters (e.g., validator selectors or time ranges). Include the same filters on every paginated request. Refer to the API Reference for each endpointโ€™s required and optional parameters.

Complete Pagination Examples

Endpoint-specific limits

List endpoints accept page_size values between 1 and 10 (default 10). Block MEV Bids is the exception, with 1 to 200 (default 25). Some endpoints include additional paging fields, so check the API Reference for the response schema of each endpoint.
If you need a stable snapshot across many pages, keep your filters constant and paginate in one continuous session.