Skip to content
function getCreditedToken(ctx, params): Promise<CreditedToken | undefined>;

Gets the CreditedToken object from the LetterOfCredit contract with the provided address.

Parameters

ParameterTypeDescription
ctxSDKContextThe SDK context.
paramsGetCreditedTokenParamsThe parameters identifying the credited token.

Returns

Promise<CreditedToken | undefined>

The credited token model if one exists with the provided address, undefined if not.