prepareSend

abstract fun prepareSend(outputs: MutableList<iTxOutput>, minConfirms: Int = 0, deductFeeFromAmount: Boolean = false): iTransaction

Creates an unsigned transaction that sends to a list of outputs. This function will select input coins from the wallet to fill the passed quantity and sign the transaction, but will not relay the transaction to the network.

Return

A signed transaction

Parameters

outputs

A list of amounts and output (constraint) scripts

minConfirms

: (Int = 0) minimum depth in the blockchain inputs must have to be eligible for inclusion in this transaction

deductFeeFromAmount

Set to true to reduce the amount sent by the fee needed, rather than add more for the fee

Throws

error specific subclasses of WalletException are thrown if the transaction cannot be constructed