API ReferenceLOC lifecycleFunction
outstandingLetterOfCreditsQuery()
function outstandingLetterOfCreditsQuery( sdk, params?): AnvilCollectionQueryDefinition<OutstandingLetterOfCredit>;Defines one or every page of outstanding LOCs, including expired unresolved positions.
Parameters
| Parameter | Type | Description |
|---|---|---|
sdk | AnvilSDK | SDK selecting the chain, LOC proxy and discovery endpoint. |
params | OutstandingLetterOfCreditsQueryParams | Creator/beneficiary and creation-kind filters, page controls and optional fetchAll. |
Returns
AnvilCollectionQueryDefinition<OutstandingLetterOfCredit>
A collection definition discovering indexed candidates and confirming them on chain.
Throws
ConfigError during execution for a missing endpoint; ReadTimeoutError when the shared deadline expires. Index and provider failures reject the whole page or traversal.
Example
const query = outstandingLetterOfCreditsQuery(sdk, { creators: [account], fetchAll: true });const page = await query.queryFn();