Skip to content

@lelantos-org/sdk / index / isOnLadder

Function: isOnLadder() ​

ts
function isOnLadder(amount, asset): boolean;

Defined in: @lelantos-org/sdk/dist/wallet/assets/amounts.d.ts:13

Whether amount is one of the asset's denominations.

false for every amount of an asset with no ladder. To distinguish "off the ladder" from "no ladder exists", check asset.ladder.length > 0 first.

Parameters ​

ParameterType
amountCircuitAmountLike
assetAssetInfo

Returns ​

boolean