Skip to content

API ReferenceVaults, collateral, and riskFunction

collateralReservationsQuery()

function collateralReservationsQuery(sdk, params?): CollateralReservationsQueryDefinition;

Defines indexed reservation pages within one vault. Filters are captured and every page retains provenance.

Parameters

ParameterTypeDescription
sdkAnvilSDKConfigured SDK selecting the chain and index endpoint.
paramsGetCollateralReservationsParamsVault, account, reserving contract, token, activity and page filters.

Returns

CollateralReservationsQueryDefinition

A framework-neutral collection query definition.

Throws

InvalidArgumentError for an invalid limit or, during execution, invalid filters/cursors; SubgraphCompatibilityError for incomplete index facts; ConfigError for a missing endpoint. Transport errors propagate.

Example

const query = collateralReservationsQuery(sdk, { accountAddress, active: true });