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
| Parameter | Type | Description |
|---|---|---|
sdk | AnvilSDK | Configured SDK selecting the chain and index endpoint. |
params | GetCollateralReservationsParams | Vault, 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 });