Function TransactionBuilder.refund

Resets the state and changes the address of the refund transaction

ref TransactionBuilder refund (
  in ref const(PublicKey) toward
) nothrow return @safe;

Ideally one should provide the correct address for the refund transaction in the constructor, however if for some reason it is not known in advance, or if the Output or Transaction overload is used, this function provides a convenient mean to change the refund address.

Parameters

NameDescription
toward Refund address to use for the transaction being built

Returns

Reference to this for easy chaining