Function TransactionBuilder.draw
Splits the attached input into multiple outputs of the given amounts.
Any leftover will remain in the refund transaction.
The value drawn (amount * toward
) must be lesser or equal
to the fund currently attached and in the refund transaction.
Parameters
Name | Description |
---|---|
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