add

abstract fun add(input: iTxInput, reserve: SpendableReservation? = SPENDABLE_RESERVE_UNTIL_QUIT): iTransaction

Append an input to this transaction (at the end).

Return

this transaction so member calls can be chained

Parameters

input

the input to spend in this tx

reserve

if non-null, the UTXO Spendable that was added will be marked as reserved based on the passed policy


abstract fun add(spendable: Spendable, reserve: SpendableReservation? = SPENDABLE_RESERVE_UNTIL_QUIT): iTransaction

Add an input to this transaction (at the end)

Return

this transaction so member calls can be chained

Parameters

spendable

the Spendable UTXO to spend in this tx

reserve

if non-null, the UTXO Spendable that was added will be marked as reserved based on the passed policy


abstract fun add(output: iTxOutput): iTransaction

Add an output to this transaction (at the end)

Return

this transaction so member calls can be chained