Skip to content

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

ParameterTypeDescription
ctxSDKContextSDK context selecting a profile and subgraph endpoint.
paramsGetOutstandingLetterOfCreditsParamsDiscovery filters and continuation cursor.
optionsReadExecutionOptionsOptional 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));