API ReferenceVaults, collateral, and riskFunction
getCreditedToken()
function getCreditedToken(ctx, params): Promise<CreditedToken | undefined>;Gets the CreditedToken object from the LetterOfCredit contract with the provided address.
Parameters
| Parameter | Type | Description |
|---|---|---|
ctx | SDKContext | The SDK context. |
params | GetCreditedTokenParams | The parameters identifying the credited token. |
Returns
Promise<CreditedToken | undefined>
The credited token model if one exists with the provided address, undefined if not.