Skip to content

@gala-chain/chaincodeAPI


API > fetchAllowancesWithPagination

Function: fetchAllowancesWithPagination()

fetchAllowancesWithPagination(ctx, data): Promise\<FetchAllowancesResponse>

Parameters

ctx: GalaChainContext

data: FetchAllowancesParams & object

Returns

<Promise

Description

Query allowances from on-chain World State using the provided parameters. The results will be sorted by creation date ascending (oldest first)

Paginated version, replaces fetchAllowances() for use cases that expect large result sets. Tuning the limit parameter to a reasonable page size will optimize performance.

Source

chaincode/src/allowances/fetchAllowances.ts:104