@lelantos-org/sdk / advanced / outAmount
Function: outAmount()
ts
function outAmount(side, amount): OutAmount;Defined in: @lelantos-org/sdk/dist/wallet/assets/amount.d.ts:191
Build an OutAmount from a side chosen at runtime (a gross/net toggle).
{ [side]: amount } widens to an index signature and does not type-check as OutAmount; this keeps the exclusivity.
Parameters
| Parameter | Type |
|---|---|
side | OutAmountSide |
amount | Amount |