Builder

class Builder
A transaction, with its inputs and outputs
Protobuf type TW.Bitcoin.Proto.Transaction

Functions

Link copied to clipboard
open fun addAllInputs(values: Iterable<out TransactionInput>): Bitcoin.Transaction.Builder
A list of 1 or more transaction inputs or sources for coins.
repeated .TW.Bitcoin.Proto.TransactionInput inputs = 3;
Link copied to clipboard
open fun addAllOutputs(values: Iterable<out TransactionOutput>): Bitcoin.Transaction.Builder
A list of 1 or more transaction outputs or destinations for coins.
repeated .TW.Bitcoin.Proto.TransactionOutput outputs = 4;
Link copied to clipboard
open fun addInputs(builderForValue: Builder): Bitcoin.Transaction.Builder
open fun addInputs(value: TransactionInput): Bitcoin.Transaction.Builder
open fun addInputs(index: Int, builderForValue: Builder): Bitcoin.Transaction.Builder
open fun addInputs(index: Int, value: TransactionInput): Bitcoin.Transaction.Builder
A list of 1 or more transaction inputs or sources for coins.
repeated .TW.Bitcoin.Proto.TransactionInput inputs = 3;
Link copied to clipboard
open fun addOutputs(builderForValue: Builder): Bitcoin.Transaction.Builder
open fun addOutputs(value: TransactionOutput): Bitcoin.Transaction.Builder
open fun addOutputs(index: Int, builderForValue: Builder): Bitcoin.Transaction.Builder
open fun addOutputs(index: Int, value: TransactionOutput): Bitcoin.Transaction.Builder
A list of 1 or more transaction outputs or destinations for coins.
repeated .TW.Bitcoin.Proto.TransactionOutput outputs = 4;
Link copied to clipboard
A list of 1 or more transaction inputs or sources for coins.
repeated .TW.Bitcoin.Proto.TransactionInput inputs = 3;
Link copied to clipboard
The block number or timestamp at which this transaction is unlocked.
uint32 lockTime = 2;
Link copied to clipboard
A list of 1 or more transaction outputs or destinations for coins.
repeated .TW.Bitcoin.Proto.TransactionOutput outputs = 4;
Link copied to clipboard
Transaction data format version.
sint32 version = 1;
Link copied to clipboard
open fun getInputs(index: Int): TransactionInput
A list of 1 or more transaction inputs or sources for coins.
repeated .TW.Bitcoin.Proto.TransactionInput inputs = 3;
Link copied to clipboard
open fun getInputsCount(): Int
A list of 1 or more transaction inputs or sources for coins.
repeated .TW.Bitcoin.Proto.TransactionInput inputs = 3;
Link copied to clipboard
open fun getInputsList(): List<TransactionInput>
A list of 1 or more transaction inputs or sources for coins.
repeated .TW.Bitcoin.Proto.TransactionInput inputs = 3;
Link copied to clipboard
open fun getLockTime(): Int
The block number or timestamp at which this transaction is unlocked.
uint32 lockTime = 2;
Link copied to clipboard
open fun getOutputs(index: Int): TransactionOutput
A list of 1 or more transaction outputs or destinations for coins.
repeated .TW.Bitcoin.Proto.TransactionOutput outputs = 4;
Link copied to clipboard
open fun getOutputsCount(): Int
A list of 1 or more transaction outputs or destinations for coins.
repeated .TW.Bitcoin.Proto.TransactionOutput outputs = 4;
Link copied to clipboard
open fun getOutputsList(): List<TransactionOutput>
A list of 1 or more transaction outputs or destinations for coins.
repeated .TW.Bitcoin.Proto.TransactionOutput outputs = 4;
Link copied to clipboard
open fun getVersion(): Int
Transaction data format version.
sint32 version = 1;
Link copied to clipboard
A list of 1 or more transaction inputs or sources for coins.
repeated .TW.Bitcoin.Proto.TransactionInput inputs = 3;
Link copied to clipboard
A list of 1 or more transaction outputs or destinations for coins.
repeated .TW.Bitcoin.Proto.TransactionOutput outputs = 4;
Link copied to clipboard
open fun setInputs(index: Int, builderForValue: Builder): Bitcoin.Transaction.Builder
open fun setInputs(index: Int, value: TransactionInput): Bitcoin.Transaction.Builder
A list of 1 or more transaction inputs or sources for coins.
repeated .TW.Bitcoin.Proto.TransactionInput inputs = 3;
Link copied to clipboard
The block number or timestamp at which this transaction is unlocked.
uint32 lockTime = 2;
Link copied to clipboard
open fun setOutputs(index: Int, builderForValue: Builder): Bitcoin.Transaction.Builder
open fun setOutputs(index: Int, value: TransactionOutput): Bitcoin.Transaction.Builder
A list of 1 or more transaction outputs or destinations for coins.
repeated .TW.Bitcoin.Proto.TransactionOutput outputs = 4;
Link copied to clipboard
Transaction data format version.
sint32 version = 1;