Builder

class Builder
Raw transaction data
Protobuf type TW.Nebulas.Proto.RawTransaction

Functions

Link copied to clipboard
algorithm
uint32 alg = 11;
Link copied to clipboard
chain ID (4 bytes)
uint32 chain_id = 8;
Link copied to clipboard
generic data
.TW.Nebulas.Proto.Data data = 7;
Link copied to clipboard
source address
bytes from = 2;
Link copied to clipboard
gas limit (uint256, serialized little endian)
bytes gas_limit = 10;
Link copied to clipboard
gas price (uint256, serialized little endian)
bytes gas_price = 9;
Link copied to clipboard
tx hash
bytes hash = 1;
Link copied to clipboard
Nonce (should be larger than in the last transaction of the account)
uint64 nonce = 5;
Link copied to clipboard
signature
bytes sign = 12;
Link copied to clipboard
transaction timestamp
int64 timestamp = 6;
Link copied to clipboard
destination address
bytes to = 3;
Link copied to clipboard
amount (uint256, serialized little endian)
bytes value = 4;
Link copied to clipboard
open fun getAlg(): Int
algorithm
uint32 alg = 11;
Link copied to clipboard
open fun getChainId(): Int
chain ID (4 bytes)
uint32 chain_id = 8;
Link copied to clipboard
open fun getData(): Data
generic data
.TW.Nebulas.Proto.Data data = 7;
Link copied to clipboard
open fun getFrom(): ByteString
source address
bytes from = 2;
Link copied to clipboard
open fun getGasLimit(): ByteString
gas limit (uint256, serialized little endian)
bytes gas_limit = 10;
Link copied to clipboard
open fun getGasPrice(): ByteString
gas price (uint256, serialized little endian)
bytes gas_price = 9;
Link copied to clipboard
open fun getHash(): ByteString
tx hash
bytes hash = 1;
Link copied to clipboard
open fun getNonce(): Long
Nonce (should be larger than in the last transaction of the account)
uint64 nonce = 5;
Link copied to clipboard
open fun getSign(): ByteString
signature
bytes sign = 12;
Link copied to clipboard
open fun getTimestamp(): Long
transaction timestamp
int64 timestamp = 6;
Link copied to clipboard
open fun getTo(): ByteString
destination address
bytes to = 3;
Link copied to clipboard
open fun getValue(): ByteString
amount (uint256, serialized little endian)
bytes value = 4;
Link copied to clipboard
open fun hasData(): Boolean
generic data
.TW.Nebulas.Proto.Data data = 7;
Link copied to clipboard
generic data
.TW.Nebulas.Proto.Data data = 7;
Link copied to clipboard
algorithm
uint32 alg = 11;
Link copied to clipboard
chain ID (4 bytes)
uint32 chain_id = 8;
Link copied to clipboard
open fun setData(builderForValue: Builder): Nebulas.RawTransaction.Builder
generic data
.TW.Nebulas.Proto.Data data = 7;
Link copied to clipboard
open fun setFrom(value: ByteString): Nebulas.RawTransaction.Builder
source address
bytes from = 2;
Link copied to clipboard
open fun setGasLimit(value: ByteString): Nebulas.RawTransaction.Builder
gas limit (uint256, serialized little endian)
bytes gas_limit = 10;
Link copied to clipboard
open fun setGasPrice(value: ByteString): Nebulas.RawTransaction.Builder
gas price (uint256, serialized little endian)
bytes gas_price = 9;
Link copied to clipboard
open fun setHash(value: ByteString): Nebulas.RawTransaction.Builder
tx hash
bytes hash = 1;
Link copied to clipboard
Nonce (should be larger than in the last transaction of the account)
uint64 nonce = 5;
Link copied to clipboard
open fun setSign(value: ByteString): Nebulas.RawTransaction.Builder
signature
bytes sign = 12;
Link copied to clipboard
transaction timestamp
int64 timestamp = 6;
Link copied to clipboard
open fun setTo(value: ByteString): Nebulas.RawTransaction.Builder
destination address
bytes to = 3;
Link copied to clipboard
open fun setValue(value: ByteString): Nebulas.RawTransaction.Builder
amount (uint256, serialized little endian)
bytes value = 4;