Builder

class Builder
A transaction
Protobuf type TW.NULS.Proto.Transaction

Functions

Link copied to clipboard
Tx hash
uint32 hash = 8;
Link copied to clipboard
CoinFrom
.TW.NULS.Proto.TransactionCoinFrom input = 5;
Link copied to clipboard
CoinTo
.TW.NULS.Proto.TransactionCoinTo output = 6;
Link copied to clipboard
Optional string remark
string remark = 3;
Link copied to clipboard
Timestamp of the transaction
uint32 timestamp = 2;
Link copied to clipboard
The raw data
bytes tx_data = 4;
Link copied to clipboard
Signature
.TW.NULS.Proto.Signature tx_sigs = 7;
Link copied to clipboard
transaction type
uint32 type = 1;
Link copied to clipboard
open fun getHash(): Int
Tx hash
uint32 hash = 8;
Link copied to clipboard
open fun getInput(): TransactionCoinFrom
CoinFrom
.TW.NULS.Proto.TransactionCoinFrom input = 5;
Link copied to clipboard
open fun getOutput(): TransactionCoinTo
CoinTo
.TW.NULS.Proto.TransactionCoinTo output = 6;
Link copied to clipboard
open fun getRemark(): String
Optional string remark
string remark = 3;
Link copied to clipboard
open fun getRemarkBytes(): ByteString
Optional string remark
string remark = 3;
Link copied to clipboard
open fun getTimestamp(): Int
Timestamp of the transaction
uint32 timestamp = 2;
Link copied to clipboard
open fun getTxData(): ByteString
The raw data
bytes tx_data = 4;
Link copied to clipboard
open fun getTxSigs(): Signature
Signature
.TW.NULS.Proto.Signature tx_sigs = 7;
Link copied to clipboard
open fun getType(): Int
transaction type
uint32 type = 1;
Link copied to clipboard
open fun hasInput(): Boolean
CoinFrom
.TW.NULS.Proto.TransactionCoinFrom input = 5;
Link copied to clipboard
open fun hasOutput(): Boolean
CoinTo
.TW.NULS.Proto.TransactionCoinTo output = 6;
Link copied to clipboard
open fun hasTxSigs(): Boolean
Signature
.TW.NULS.Proto.Signature tx_sigs = 7;
Link copied to clipboard
open fun mergeInput(value: TransactionCoinFrom): NULS.Transaction.Builder
CoinFrom
.TW.NULS.Proto.TransactionCoinFrom input = 5;
Link copied to clipboard
open fun mergeOutput(value: TransactionCoinTo): NULS.Transaction.Builder
CoinTo
.TW.NULS.Proto.TransactionCoinTo output = 6;
Link copied to clipboard
open fun mergeTxSigs(value: Signature): NULS.Transaction.Builder
Signature
.TW.NULS.Proto.Signature tx_sigs = 7;
Link copied to clipboard
Tx hash
uint32 hash = 8;
Link copied to clipboard
open fun setInput(builderForValue: Builder): NULS.Transaction.Builder
open fun setInput(value: TransactionCoinFrom): NULS.Transaction.Builder
CoinFrom
.TW.NULS.Proto.TransactionCoinFrom input = 5;
Link copied to clipboard
open fun setOutput(builderForValue: Builder): NULS.Transaction.Builder
open fun setOutput(value: TransactionCoinTo): NULS.Transaction.Builder
CoinTo
.TW.NULS.Proto.TransactionCoinTo output = 6;
Link copied to clipboard
Optional string remark
string remark = 3;
Link copied to clipboard
open fun setRemarkBytes(value: ByteString): NULS.Transaction.Builder
Optional string remark
string remark = 3;
Link copied to clipboard
Timestamp of the transaction
uint32 timestamp = 2;
Link copied to clipboard
open fun setTxData(value: ByteString): NULS.Transaction.Builder
The raw data
bytes tx_data = 4;
Link copied to clipboard
open fun setTxSigs(builderForValue: Builder): NULS.Transaction.Builder
open fun setTxSigs(value: Signature): NULS.Transaction.Builder
Signature
.TW.NULS.Proto.Signature tx_sigs = 7;
Link copied to clipboard
transaction type
uint32 type = 1;