Builder

class Builder
Input data necessary to create a signed order.
Protobuf type TW.NULS.Proto.SigningInput

Functions

Link copied to clipboard
Transfer amount (uint256, serialized little endian)
bytes amount = 4;
Link copied to clipboard
Account balance 
bytes balance = 9;
Link copied to clipboard
Chain ID
uint32 chain_id = 5;
Link copied to clipboard
Source address
string from = 2;
Link copied to clipboard
Asset ID
uint32 idassets_id = 6;
Link copied to clipboard
The last 8 bytes of latest transaction hash 
bytes nonce = 7;
Link copied to clipboard
The secret private key used for signing (32 bytes).
bytes private_key = 1;
Link copied to clipboard
Optional memo remark
string remark = 8;
Link copied to clipboard
time, accurate to the second
uint32 timestamp = 10;
Link copied to clipboard
Destination address
string to = 3;
Link copied to clipboard
open fun getAmount(): ByteString
Transfer amount (uint256, serialized little endian)
bytes amount = 4;
Link copied to clipboard
open fun getBalance(): ByteString
Account balance 
bytes balance = 9;
Link copied to clipboard
open fun getChainId(): Int
Chain ID
uint32 chain_id = 5;
Link copied to clipboard
open fun getFrom(): String
Source address
string from = 2;
Link copied to clipboard
open fun getFromBytes(): ByteString
Source address
string from = 2;
Link copied to clipboard
open fun getIdassetsId(): Int
Asset ID
uint32 idassets_id = 6;
Link copied to clipboard
open fun getNonce(): ByteString
The last 8 bytes of latest transaction hash 
bytes nonce = 7;
Link copied to clipboard
open fun getPrivateKey(): ByteString
The secret private key used for signing (32 bytes).
bytes private_key = 1;
Link copied to clipboard
open fun getRemark(): String
Optional memo remark
string remark = 8;
Link copied to clipboard
open fun getRemarkBytes(): ByteString
Optional memo remark
string remark = 8;
Link copied to clipboard
open fun getTimestamp(): Int
time, accurate to the second
uint32 timestamp = 10;
Link copied to clipboard
open fun getTo(): String
Destination address
string to = 3;
Link copied to clipboard
open fun getToBytes(): ByteString
Destination address
string to = 3;
Link copied to clipboard
open fun setAmount(value: ByteString): NULS.SigningInput.Builder
Transfer amount (uint256, serialized little endian)
bytes amount = 4;
Link copied to clipboard
open fun setBalance(value: ByteString): NULS.SigningInput.Builder
Account balance 
bytes balance = 9;
Link copied to clipboard
Chain ID
uint32 chain_id = 5;
Link copied to clipboard
Source address
string from = 2;
Link copied to clipboard
open fun setFromBytes(value: ByteString): NULS.SigningInput.Builder
Source address
string from = 2;
Link copied to clipboard
Asset ID
uint32 idassets_id = 6;
Link copied to clipboard
open fun setNonce(value: ByteString): NULS.SigningInput.Builder
The last 8 bytes of latest transaction hash 
bytes nonce = 7;
Link copied to clipboard
open fun setPrivateKey(value: ByteString): NULS.SigningInput.Builder
The secret private key used for signing (32 bytes).
bytes private_key = 1;
Link copied to clipboard
Optional memo remark
string remark = 8;
Link copied to clipboard
open fun setRemarkBytes(value: ByteString): NULS.SigningInput.Builder
Optional memo remark
string remark = 8;
Link copied to clipboard
time, accurate to the second
uint32 timestamp = 10;
Link copied to clipboard
Destination address
string to = 3;
Link copied to clipboard
open fun setToBytes(value: ByteString): NULS.SigningInput.Builder
Destination address
string to = 3;