Skip to content

@lelantos-org/sdk / index / Money

Interface: Money ​

Defined in: @lelantos-org/sdk/dist/wallet/types/results.d.ts:44

An amount of one asset in both integer spaces.

Which field is authoritative follows where the figure lives:

  • shielded figures (note values, publicIn/publicOut, unit-denominated yield fees): amount is exact and baseUnits is its conversion at the asset's rate;
  • public figures (pulls, refunds, net received, plain-asset protocol fees): baseUnits is exact and amount is fromBaseUnits(baseUnits, { round: "down" }), for display.

Properties ​

amount ​

ts
amount: CircuitAmount;

Defined in: @lelantos-org/sdk/dist/wallet/types/results.d.ts:46


asset ​

ts
asset: AssetId;

Defined in: @lelantos-org/sdk/dist/wallet/types/results.d.ts:45


baseUnits ​

ts
baseUnits: TokenAmount;

Defined in: @lelantos-org/sdk/dist/wallet/types/results.d.ts:47