Builder

class Builder
Describes a preliminary transaction plan.
Protobuf type TW.Bitcoin.Proto.TransactionPlan

Functions

Link copied to clipboard
open fun addAllUtxos(values: Iterable<out UnspentTransaction>): Bitcoin.TransactionPlan.Builder
Selected unspent transaction outputs (subset of all input UTXOs)
repeated .TW.Bitcoin.Proto.UnspentTransaction utxos = 5;
Link copied to clipboard
open fun addUtxos(builderForValue: Builder): Bitcoin.TransactionPlan.Builder
open fun addUtxos(value: UnspentTransaction): Bitcoin.TransactionPlan.Builder
open fun addUtxos(index: Int, builderForValue: Builder): Bitcoin.TransactionPlan.Builder
open fun addUtxos(index: Int, value: UnspentTransaction): Bitcoin.TransactionPlan.Builder
Selected unspent transaction outputs (subset of all input UTXOs)
repeated .TW.Bitcoin.Proto.UnspentTransaction utxos = 5;
Link copied to clipboard
Amount to be received at the other end.
int64 amount = 1;
Link copied to clipboard
Maximum available amount in all the input UTXOs.
int64 available_amount = 2;
Link copied to clipboard
Zcash branch id
bytes branch_id = 6;
Link copied to clipboard
Remaining change
int64 change = 4;
Link copied to clipboard
Optional error
.TW.Common.Proto.SigningError error = 7;
Link copied to clipboard
Estimated transaction fee.
int64 fee = 3;
Link copied to clipboard
Optional zero-amount, OP_RETURN output
bytes output_op_return = 8;
Link copied to clipboard
Selected unspent transaction outputs (subset of all input UTXOs)
repeated .TW.Bitcoin.Proto.UnspentTransaction utxos = 5;
Link copied to clipboard
open fun getAmount(): Long
Amount to be received at the other end.
int64 amount = 1;
Link copied to clipboard
Maximum available amount in all the input UTXOs.
int64 available_amount = 2;
Link copied to clipboard
open fun getBranchId(): ByteString
Zcash branch id
bytes branch_id = 6;
Link copied to clipboard
open fun getChange(): Long
Remaining change
int64 change = 4;
Link copied to clipboard
open fun getError(): SigningError
Optional error
.TW.Common.Proto.SigningError error = 7;
Link copied to clipboard
open fun getErrorValue(): Int
Optional error
.TW.Common.Proto.SigningError error = 7;
Link copied to clipboard
open fun getFee(): Long
Estimated transaction fee.
int64 fee = 3;
Link copied to clipboard
open fun getOutputOpReturn(): ByteString
Optional zero-amount, OP_RETURN output
bytes output_op_return = 8;
Link copied to clipboard
open fun getUtxos(index: Int): UnspentTransaction
Selected unspent transaction outputs (subset of all input UTXOs)
repeated .TW.Bitcoin.Proto.UnspentTransaction utxos = 5;
Link copied to clipboard
open fun getUtxosCount(): Int
Selected unspent transaction outputs (subset of all input UTXOs)
repeated .TW.Bitcoin.Proto.UnspentTransaction utxos = 5;
Link copied to clipboard
open fun getUtxosList(): List<UnspentTransaction>
Selected unspent transaction outputs (subset of all input UTXOs)
repeated .TW.Bitcoin.Proto.UnspentTransaction utxos = 5;
Link copied to clipboard
Selected unspent transaction outputs (subset of all input UTXOs)
repeated .TW.Bitcoin.Proto.UnspentTransaction utxos = 5;
Link copied to clipboard
Amount to be received at the other end.
int64 amount = 1;
Link copied to clipboard
Maximum available amount in all the input UTXOs.
int64 available_amount = 2;
Link copied to clipboard
open fun setBranchId(value: ByteString): Bitcoin.TransactionPlan.Builder
Zcash branch id
bytes branch_id = 6;
Link copied to clipboard
Remaining change
int64 change = 4;
Link copied to clipboard
open fun setError(value: SigningError): Bitcoin.TransactionPlan.Builder
Optional error
.TW.Common.Proto.SigningError error = 7;
Link copied to clipboard
Optional error
.TW.Common.Proto.SigningError error = 7;
Link copied to clipboard
Estimated transaction fee.
int64 fee = 3;
Link copied to clipboard
Optional zero-amount, OP_RETURN output
bytes output_op_return = 8;
Link copied to clipboard
open fun setUtxos(index: Int, builderForValue: Builder): Bitcoin.TransactionPlan.Builder
open fun setUtxos(index: Int, value: UnspentTransaction): Bitcoin.TransactionPlan.Builder
Selected unspent transaction outputs (subset of all input UTXOs)
repeated .TW.Bitcoin.Proto.UnspentTransaction utxos = 5;