Builder

class Builder
A transfer transaction
Protobuf type TW.Decred.Proto.Transaction

Functions

Link copied to clipboard
open fun addAllInputs(values: Iterable<out TransactionInput>): Decred.Transaction.Builder
A list of 1 or more transaction inputs or sources for coins.
repeated .TW.Decred.Proto.TransactionInput inputs = 3;
Link copied to clipboard
open fun addAllOutputs(values: Iterable<out TransactionOutput>): Decred.Transaction.Builder
A list of 1 or more transaction outputs or destinations for coins
repeated .TW.Decred.Proto.TransactionOutput outputs = 4;
Link copied to clipboard
open fun addInputs(builderForValue: Builder): Decred.Transaction.Builder
open fun addInputs(value: TransactionInput): Decred.Transaction.Builder
open fun addInputs(index: Int, builderForValue: Builder): Decred.Transaction.Builder
open fun addInputs(index: Int, value: TransactionInput): Decred.Transaction.Builder
A list of 1 or more transaction inputs or sources for coins.
repeated .TW.Decred.Proto.TransactionInput inputs = 3;
Link copied to clipboard
open fun addOutputs(builderForValue: Builder): Decred.Transaction.Builder
open fun addOutputs(value: TransactionOutput): Decred.Transaction.Builder
open fun addOutputs(index: Int, builderForValue: Builder): Decred.Transaction.Builder
open fun addOutputs(index: Int, value: TransactionOutput): Decred.Transaction.Builder
A list of 1 or more transaction outputs or destinations for coins
repeated .TW.Decred.Proto.TransactionOutput outputs = 4;
Link copied to clipboard
The block height at which the transaction expires and is no longer valid.
uint32 expiry = 6;
Link copied to clipboard
A list of 1 or more transaction inputs or sources for coins.
repeated .TW.Decred.Proto.TransactionInput inputs = 3;
Link copied to clipboard
The time when a transaction can be spent (usually zero, in which case it has no effect).
uint32 lockTime = 5;
Link copied to clipboard
A list of 1 or more transaction outputs or destinations for coins
repeated .TW.Decred.Proto.TransactionOutput outputs = 4;
Link copied to clipboard
Serialization format
uint32 serializeType = 1;
Link copied to clipboard
Transaction data format version
uint32 version = 2;
Link copied to clipboard
open fun getExpiry(): Int
The block height at which the transaction expires and is no longer valid.
uint32 expiry = 6;
Link copied to clipboard
open fun getInputs(index: Int): TransactionInput
A list of 1 or more transaction inputs or sources for coins.
repeated .TW.Decred.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.Decred.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.Decred.Proto.TransactionInput inputs = 3;
Link copied to clipboard
open fun getLockTime(): Int
The time when a transaction can be spent (usually zero, in which case it has no effect).
uint32 lockTime = 5;
Link copied to clipboard
open fun getOutputs(index: Int): TransactionOutput
A list of 1 or more transaction outputs or destinations for coins
repeated .TW.Decred.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.Decred.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.Decred.Proto.TransactionOutput outputs = 4;
Link copied to clipboard
open fun getSerializeType(): Int
Serialization format
uint32 serializeType = 1;
Link copied to clipboard
open fun getVersion(): Int
Transaction data format version
uint32 version = 2;
Link copied to clipboard
A list of 1 or more transaction inputs or sources for coins.
repeated .TW.Decred.Proto.TransactionInput inputs = 3;
Link copied to clipboard
A list of 1 or more transaction outputs or destinations for coins
repeated .TW.Decred.Proto.TransactionOutput outputs = 4;
Link copied to clipboard
The block height at which the transaction expires and is no longer valid.
uint32 expiry = 6;
Link copied to clipboard
open fun setInputs(index: Int, builderForValue: Builder): Decred.Transaction.Builder
open fun setInputs(index: Int, value: TransactionInput): Decred.Transaction.Builder
A list of 1 or more transaction inputs or sources for coins.
repeated .TW.Decred.Proto.TransactionInput inputs = 3;
Link copied to clipboard
The time when a transaction can be spent (usually zero, in which case it has no effect).
uint32 lockTime = 5;
Link copied to clipboard
open fun setOutputs(index: Int, builderForValue: Builder): Decred.Transaction.Builder
open fun setOutputs(index: Int, value: TransactionOutput): Decred.Transaction.Builder
A list of 1 or more transaction outputs or destinations for coins
repeated .TW.Decred.Proto.TransactionOutput outputs = 4;
Link copied to clipboard
Serialization format
uint32 serializeType = 1;
Link copied to clipboard
Transaction data format version
uint32 version = 2;