Function TransactionBuilder.draw

Splits the attached input into multiple outputs of the given amounts.

ref typeof(this) draw(KeyRange) (
  Amount amount,
  scope KeyRange toward
);

Any leftover will remain in the refund transaction. The value drawn (amount * toward.length) must be lesser or equal to the fund currently attached and in the refund transaction.

Parameters

NameDescription
KeyRange A range of PublicKey
amount Amount to distribute to each PublicKey
toward Array of PublicKey to give amount to

Returns

Reference to this for easy chaining