paginate
paginate<
C>(page,first,maxPages?):Promise<bigint[]>
Defined in: protocol-staking-native-monad/src/rpc.ts:49
Reads every page of a paginated precompile getter: (isDone, next, ids), following next until
isDone. Pages are shorter than the documented 100 in practice; the guard stops a node that never
says done.
Type Parameters
Section titled “Type Parameters”C extends number | bigint
Parameters
Section titled “Parameters”(start) => Promise<readonly [boolean, C, readonly bigint[]]>
C
maxPages?
Section titled “maxPages?”number = 50
Returns
Section titled “Returns”Promise<bigint[]>