Skip to content
docs

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.

C extends number | bigint

(start) => Promise<readonly [boolean, C, readonly bigint[]]>

C

number = 50

Promise<bigint[]>