Skip to content

@lelantos-org/sdk / wallet / resolveAmount

Function: resolveAmount() โ€‹

ts
function resolveAmount(amount, asset): CircuitAmount;

Defined in: @lelantos-org/sdk/dist/wallet/amount.d.ts:21

Resolve amount against asset.

Parameters โ€‹

ParameterType
amountAmountLike
assetAssetInfo

Returns โ€‹

CircuitAmount

Throws โ€‹

for a number, which cannot represent a decimal amount exactly, or for a string the asset has no decimals for.

Throws โ€‹

when the value is finer-grained than one circuit unit โ€” dust that the pool cannot express, and that silently truncating would lose.

Lelantosno cookies ๐Ÿช ยท no tracking ๐Ÿ‘๏ธ ยท no accounts ๐Ÿ‘คwalletexplorer4536080GitHub