Builder

class Builder
Input data necessary to create a signed transaction.
Protobuf type TW.NEO.Proto.SigningInput

Functions

Link copied to clipboard
open fun addAllInputs(values: Iterable<out TransactionInput>): NEO.SigningInput.Builder
Available transaction inputs
repeated .TW.NEO.Proto.TransactionInput inputs = 1;
Link copied to clipboard
open fun addAllOutputs(values: Iterable<out TransactionOutput>): NEO.SigningInput.Builder
Transaction outputs
repeated .TW.NEO.Proto.TransactionOutput outputs = 2;
Link copied to clipboard
open fun addInputs(builderForValue: Builder): NEO.SigningInput.Builder
open fun addInputs(value: TransactionInput): NEO.SigningInput.Builder
open fun addInputs(index: Int, builderForValue: Builder): NEO.SigningInput.Builder
open fun addInputs(index: Int, value: TransactionInput): NEO.SigningInput.Builder
Available transaction inputs
repeated .TW.NEO.Proto.TransactionInput inputs = 1;
Link copied to clipboard
open fun addOutputs(builderForValue: Builder): NEO.SigningInput.Builder
open fun addOutputs(value: TransactionOutput): NEO.SigningInput.Builder
open fun addOutputs(index: Int, builderForValue: Builder): NEO.SigningInput.Builder
open fun addOutputs(index: Int, value: TransactionOutput): NEO.SigningInput.Builder
Transaction outputs
repeated .TW.NEO.Proto.TransactionOutput outputs = 2;
Link copied to clipboard
Fee
int64 fee = 4;
Link copied to clipboard
Asset ID for gas
string gas_asset_id = 5;
Link copied to clipboard
Address for the change
string gas_change_address = 6;
Link copied to clipboard
Available transaction inputs
repeated .TW.NEO.Proto.TransactionInput inputs = 1;
Link copied to clipboard
Transaction outputs
repeated .TW.NEO.Proto.TransactionOutput outputs = 2;
Link copied to clipboard
Optional transaction plan (if missing it will be computed)
.TW.NEO.Proto.TransactionPlan plan = 7;
Link copied to clipboard
The secret private key used for signing (32 bytes).
bytes private_key = 3;
Link copied to clipboard
open fun getFee(): Long
Fee
int64 fee = 4;
Link copied to clipboard
open fun getGasAssetId(): String
Asset ID for gas
string gas_asset_id = 5;
Link copied to clipboard
open fun getGasAssetIdBytes(): ByteString
Asset ID for gas
string gas_asset_id = 5;
Link copied to clipboard
Address for the change
string gas_change_address = 6;
Link copied to clipboard
open fun getGasChangeAddressBytes(): ByteString
Address for the change
string gas_change_address = 6;
Link copied to clipboard
open fun getInputs(index: Int): TransactionInput
Available transaction inputs
repeated .TW.NEO.Proto.TransactionInput inputs = 1;
Link copied to clipboard
open fun getInputsCount(): Int
Available transaction inputs
repeated .TW.NEO.Proto.TransactionInput inputs = 1;
Link copied to clipboard
open fun getInputsList(): List<TransactionInput>
Available transaction inputs
repeated .TW.NEO.Proto.TransactionInput inputs = 1;
Link copied to clipboard
open fun getOutputs(index: Int): TransactionOutput
Transaction outputs
repeated .TW.NEO.Proto.TransactionOutput outputs = 2;
Link copied to clipboard
open fun getOutputsCount(): Int
Transaction outputs
repeated .TW.NEO.Proto.TransactionOutput outputs = 2;
Link copied to clipboard
open fun getOutputsList(): List<TransactionOutput>
Transaction outputs
repeated .TW.NEO.Proto.TransactionOutput outputs = 2;
Link copied to clipboard
open fun getPlan(): TransactionPlan
Optional transaction plan (if missing it will be computed)
.TW.NEO.Proto.TransactionPlan plan = 7;
Link copied to clipboard
open fun getPrivateKey(): ByteString
The secret private key used for signing (32 bytes).
bytes private_key = 3;
Link copied to clipboard
open fun hasPlan(): Boolean
Optional transaction plan (if missing it will be computed)
.TW.NEO.Proto.TransactionPlan plan = 7;
Link copied to clipboard
open fun mergePlan(value: TransactionPlan): NEO.SigningInput.Builder
Optional transaction plan (if missing it will be computed)
.TW.NEO.Proto.TransactionPlan plan = 7;
Link copied to clipboard
Available transaction inputs
repeated .TW.NEO.Proto.TransactionInput inputs = 1;
Link copied to clipboard
Transaction outputs
repeated .TW.NEO.Proto.TransactionOutput outputs = 2;
Link copied to clipboard
Fee
int64 fee = 4;
Link copied to clipboard
Asset ID for gas
string gas_asset_id = 5;
Link copied to clipboard
open fun setGasAssetIdBytes(value: ByteString): NEO.SigningInput.Builder
Asset ID for gas
string gas_asset_id = 5;
Link copied to clipboard
Address for the change
string gas_change_address = 6;
Link copied to clipboard
Address for the change
string gas_change_address = 6;
Link copied to clipboard
open fun setInputs(index: Int, builderForValue: Builder): NEO.SigningInput.Builder
open fun setInputs(index: Int, value: TransactionInput): NEO.SigningInput.Builder
Available transaction inputs
repeated .TW.NEO.Proto.TransactionInput inputs = 1;
Link copied to clipboard
open fun setOutputs(index: Int, builderForValue: Builder): NEO.SigningInput.Builder
open fun setOutputs(index: Int, value: TransactionOutput): NEO.SigningInput.Builder
Transaction outputs
repeated .TW.NEO.Proto.TransactionOutput outputs = 2;
Link copied to clipboard
open fun setPlan(builderForValue: Builder): NEO.SigningInput.Builder
open fun setPlan(value: TransactionPlan): NEO.SigningInput.Builder
Optional transaction plan (if missing it will be computed)
.TW.NEO.Proto.TransactionPlan plan = 7;
Link copied to clipboard
open fun setPrivateKey(value: ByteString): NEO.SigningInput.Builder
The secret private key used for signing (32 bytes).
bytes private_key = 3;