API ReferenceLOC lifecycleFunction
getOutstandingLetterOfCredits()
function getOutstandingLetterOfCredits( ctx, params, options?): Promise<CollectionPage<OutstandingLetterOfCredit>>;Discovers outstanding LOC IDs from the index and reads their current state in one atomic contract batch.
Parameters
| Parameter | Type | Description |
|---|---|---|
ctx | SDKContext | SDK context selecting a profile and subgraph endpoint. |
params | GetOutstandingLetterOfCreditsParams | Discovery filters and continuation cursor. |
options | ReadExecutionOptions | Optional cancellation signal. |
Returns
Promise<CollectionPage<OutstandingLetterOfCredit>>
Current outstanding state and the unchanged discovery continuation; resolved candidates are omitted.
Throws
ReadTimeoutError when discovery and chain reads exceed the shared deadline; provider errors reject the whole page.
Example
const page = await getOutstandingLetterOfCredits(ctx, { creators: [account] });console.log(page.items.map(loc => loc.reference.id));