Function TransactionBuilder.split

Similar to draw(Amount, PublicKey[]), but uses all available funds

ref typeof(this) split(KeyRange) (
  scope KeyRange toward
);

Note that if the available funds are not a multiple of toward.length, the refund Output will holds the leftovers.

Parameters

NameDescription
KeyRange A range of PublicKey or Lock
toward Beneficiary to split the currently available amount between

Returns

Reference to this for easy chaining