Builder

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

Functions

Link copied to clipboard
open fun addAllInputs(values: Iterable<out TransactionInput>): NEO.TransactionPlan.Builder
Selected unspent transaction outputs.
repeated .TW.NEO.Proto.TransactionInput inputs = 2;
Link copied to clipboard
open fun addAllOutputs(values: Iterable<out TransactionOutputPlan>): NEO.TransactionPlan.Builder
Used assets
repeated .TW.NEO.Proto.TransactionOutputPlan outputs = 1;
Link copied to clipboard
open fun addInputs(builderForValue: Builder): NEO.TransactionPlan.Builder
open fun addInputs(value: TransactionInput): NEO.TransactionPlan.Builder
open fun addInputs(index: Int, builderForValue: Builder): NEO.TransactionPlan.Builder
open fun addInputs(index: Int, value: TransactionInput): NEO.TransactionPlan.Builder
Selected unspent transaction outputs.
repeated .TW.NEO.Proto.TransactionInput inputs = 2;
Link copied to clipboard
open fun addOutputs(builderForValue: Builder): NEO.TransactionPlan.Builder
open fun addOutputs(value: TransactionOutputPlan): NEO.TransactionPlan.Builder
open fun addOutputs(index: Int, builderForValue: Builder): NEO.TransactionPlan.Builder
open fun addOutputs(index: Int, value: TransactionOutputPlan): NEO.TransactionPlan.Builder
Used assets
repeated .TW.NEO.Proto.TransactionOutputPlan outputs = 1;
Link copied to clipboard
Optional error
.TW.Common.Proto.SigningError error = 4;
Link copied to clipboard
GAS used
int64 fee = 3;
Link copied to clipboard
Selected unspent transaction outputs.
repeated .TW.NEO.Proto.TransactionInput inputs = 2;
Link copied to clipboard
Used assets
repeated .TW.NEO.Proto.TransactionOutputPlan outputs = 1;
Link copied to clipboard
open fun getError(): SigningError
Optional error
.TW.Common.Proto.SigningError error = 4;
Link copied to clipboard
open fun getErrorValue(): Int
Optional error
.TW.Common.Proto.SigningError error = 4;
Link copied to clipboard
open fun getFee(): Long
GAS used
int64 fee = 3;
Link copied to clipboard
open fun getInputs(index: Int): TransactionInput
Selected unspent transaction outputs.
repeated .TW.NEO.Proto.TransactionInput inputs = 2;
Link copied to clipboard
open fun getInputsCount(): Int
Selected unspent transaction outputs.
repeated .TW.NEO.Proto.TransactionInput inputs = 2;
Link copied to clipboard
open fun getInputsList(): List<TransactionInput>
Selected unspent transaction outputs.
repeated .TW.NEO.Proto.TransactionInput inputs = 2;
Link copied to clipboard
open fun getOutputs(index: Int): TransactionOutputPlan
Used assets
repeated .TW.NEO.Proto.TransactionOutputPlan outputs = 1;
Link copied to clipboard
open fun getOutputsCount(): Int
Used assets
repeated .TW.NEO.Proto.TransactionOutputPlan outputs = 1;
Link copied to clipboard
open fun getOutputsList(): List<TransactionOutputPlan>
Used assets
repeated .TW.NEO.Proto.TransactionOutputPlan outputs = 1;
Link copied to clipboard
Selected unspent transaction outputs.
repeated .TW.NEO.Proto.TransactionInput inputs = 2;
Link copied to clipboard
Used assets
repeated .TW.NEO.Proto.TransactionOutputPlan outputs = 1;
Link copied to clipboard
open fun setError(value: SigningError): NEO.TransactionPlan.Builder
Optional error
.TW.Common.Proto.SigningError error = 4;
Link copied to clipboard
Optional error
.TW.Common.Proto.SigningError error = 4;
Link copied to clipboard
GAS used
int64 fee = 3;
Link copied to clipboard
open fun setInputs(index: Int, builderForValue: Builder): NEO.TransactionPlan.Builder
open fun setInputs(index: Int, value: TransactionInput): NEO.TransactionPlan.Builder
Selected unspent transaction outputs.
repeated .TW.NEO.Proto.TransactionInput inputs = 2;
Link copied to clipboard
open fun setOutputs(index: Int, builderForValue: Builder): NEO.TransactionPlan.Builder
open fun setOutputs(index: Int, value: TransactionOutputPlan): NEO.TransactionPlan.Builder
Used assets
repeated .TW.NEO.Proto.TransactionOutputPlan outputs = 1;