@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 โ
| Parameter | Type |
|---|---|
amount | AmountLike |
asset | AssetInfo |
Returns โ
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.