completeLeg
completeLeg(
args,pay?):CompletedLeg
Completes base (segment-0 imbalances: positive = surplus, negative = deficit) with
one own leg:
- shielded: each token's surplus minus the fee outputs in that token goes to the
residual address; a shortfall is spent from own coins (refused with
surplusOnly); - unshielded: surpluses to
unshieldedAddress; deficits from own NIGHT, signed; - DUST for the composite, when
payis given.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
args |
CompleteArgs |
pay? |
Omit<DustPlan, "networkId" | "ttl" | "now"> |
Returns
Section titled “Returns”CompletedLeg