You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/data/apis/rpc/api-reference/structure/pagination.mdx
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,15 @@ title: Pagination
6
6
For methods which support it, the pagination arguments are passed as a final object argument with two values:
7
7
8
8
-`cursor`: string - (optional) An opaque string which acts as a paging token. Each response will include a `cursor` field which can be included in a subsequent request to obtain the next page of results.
9
-
-`limit`: number - (optional) The maximum number of records returned. The limit for [getEvents](../methods/getEvents.mdx) can range from 1 to 10000 - an upper limit that is hardcoded in Stellar-RPC for performance reasons. If this argument isn't designated, it defaults to 100.
9
+
-`limit`: number - (optional) The maximum number of records returned. Each paginated method has a method-specific range and default.
10
+
11
+
| Method | Limit range | Default limit |
12
+
| --- | --- | --- |
13
+
|[`getEvents`](../methods/getEvents.mdx)| 1 to 10000 | 100 |
14
+
|[`getLedgers`](../methods/getLedgers.mdx)| 1 to 200 | 50 |
15
+
|[`getTransactions`](../methods/getTransactions.mdx)| 1 to 200 | 50 |
16
+
17
+
These upper limits are hardcoded in Stellar RPC for performance reasons.
10
18
11
19
For example, calling a method with pagination parameter set:
0 commit comments