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

# Pagination

We support 2 pagination types: **offset pagination** and **cursor pagination**.

## Offset pagination

An endpoint accepts the page number and breaks down the returned entries into pages. See the required parameters in the table below.

| **Parameter** | **Description**                            | **Sample Value**                                            |
| :------------ | :----------------------------------------- | :---------------------------------------------------------- |
| ***size***    | number of returned entries                 | 20                                                          |
| ***page***    | queried page                               | 3                                                           |
| ***sortBy***  | sorting parameter                          | AGE                                                         |
| ***orderBy*** | the order in which the values are returned | **ASC** - oldest to latest<br />**DESC** - latest to oldest |

## Cursor Pagination

An endpoint accepts a parameter for a cursor (transaction hash, party ID, etc.) and returns the following entries before or after it. See the required parameters in the table below.

| **Parameter**    | **Description**                                                                                    | **Sample Value**                                            |
| :--------------- | :------------------------------------------------------------------------------------------------- | :---------------------------------------------------------- |
| ***nextCursor*** | the entry (transaction, party ID, etc.) <br />after or before which other entries will be returned | 20                                                          |
| ***size***       | number of returned entries                                                                         | 20                                                          |
| ***page***       | queried page                                                                                       | 3                                                           |
| ***sortBy***     | sorting parameter                                                                                  | AGE                                                         |
| ***orderBy***    | the order in which the values are returned                                                         | **ASC** - oldest to latest<br />**DESC** - latest to oldest |
