> ## Documentation Index
> Fetch the complete documentation index at: https://docs.voyager.online/llms.txt
> Use this file to discover all available pages before exploring further.

# [23.11.26] Cursor Pagination for Transactions, Events & Messages

> GET /txns, GET /meta-txns, GET /events, and GET /messages moved their unbounded lists to cursor pagination, and block and timestamp window filters were added to these lists and to GET /blocks.

The 23 November 2026 release moved the transactions, meta-transactions, events, and messages
lists to cursor pagination. They now page the same way as the
[contracts and classes lists](https://docs.voyager.online/changelog/contracts-classes-cursor-pagination.md), which moved in the
same release.

## Affected Endpoints

| Endpoint | Cursor-paginated | Still page-numbered |
| - | - | - |
| `GET /txns` | All transactions, and lists filtered by `to` or `type` | Lists filtered by `block`, and `rejected=true` |
| `GET /meta-txns` | Always | None |
| `GET /events` | All events, and lists filtered by `contract` | Lists filtered by `blockHash` or `txnHash` |
| `GET /messages` | All messages, and lists filtered by `contract` or `type` | Lists filtered by `block` |
| `GET /blocks` | Never | Always. It gained window filters (below) but keeps `page`, `pageSize`, and `lastPage`. |

On `GET /txns`, `to` takes precedence over `block`: a request with both returns the
cursor-paginated list for `to` and ignores `block`.

## Compatibility Note

This change is **not backward-compatible** for clients that page the unbounded lists with a page
number or read `lastPage`.

> [!WARNING]
>
> The page-number parameter is ignored on the cursor-paginated lists and
> responses no longer include `lastPage`. A client that keeps incrementing the page
> number receives the first page every time. Page with the returned cursors instead.

The page-numbered lists in the right-hand column keep numbered pages: they accept `page` and
`pageSize`, the spellings of `p` and `ps` introduced by
[Consistent Naming Across the Public API](https://docs.voyager.online/changelog/api-naming-standardization.md), and still
return `lastPage`.

## New Behavior

Cursor-paginated responses carry server-issued cursors:

```json theme={null}
{
  "items": [...],
  "nextCursor": "next:1655799:12",
  "prevCursor": null
}
```

* Pass a previous response's `nextCursor`/`prevCursor` back verbatim as `cursor` to page; omit it
  for the first page. A `null` `nextCursor` means the end of the list.
* Treat cursors as opaque strings. Their format differs per endpoint and may change.
* Cursors pin a position in the chain, so pages stay stable while new blocks land, and response
  time stays constant however deep you paginate.
* `pageSize` sets the page size (10, 25, 50, or 100).
* Malformed cursors return `400`. Combining `cursor` with a page-numbered filter (`block`,
  `rejected`, `blockHash`, `txnHash`) returns `400`.

## Window Filters

The cursor-paginated lists, and `GET /blocks`, accept an inclusive window:

| Endpoint | Block window | Timestamp window |
| - | - | - |
| `GET /txns` | `blockStart` / `blockEnd` | `timestampFrom` / `timestampTo` |
| `GET /meta-txns` | `blockStart` / `blockEnd` | `timestampFrom` / `timestampTo` |
| `GET /events` | `blockStart` / `blockEnd` | `timestampFrom` / `timestampTo` |
| `GET /messages` | Not available | `timestampFrom` / `timestampTo` |
| `GET /blocks` | `blockStart` / `blockEnd` | `timestampFrom` / `timestampTo` |

* Timestamps are unix seconds. On `/txns`, `/meta-txns`, `/events`, and `/blocks` the API
  converts them to the matching block range. `/messages` filters on the message time directly.
* Window values must be whole numbers from `0` to `2147483647`. Other values return `400`.
* An empty window value, such as `blockEnd=`, is ignored, as if the parameter were not sent.
* A block window and a timestamp window cannot be combined in one request.
* Windows combine with `cursor` and the list's other filters, but not with the page-numbered
  filters listed above.
* Filter a single block with `blockStart` equal to `blockEnd`.
* Inverted windows (start after end) return `400`.

## Migrating

1. For the cursor-paginated lists, stop sending a page number and stop reading `lastPage`.
2. Request the first page without `cursor`, then follow `nextCursor` until it is `null`.
3. To show "previous page", send the `prevCursor` from the current response.
4. To fetch a specific range, use a block or timestamp window instead of jumping to a page number.

Questions or migration issues: [contact us](https://docs.voyager.online/guides/contact.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.