Builder

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

Functions

Link copied to clipboard
Sender address.
string from_address = 1;
Link copied to clipboard
Network identifier
bytes network_id = 7;
Link copied to clipboard
Integer value increased by request to avoid replay attacks.
bytes nonce = 6;
Link copied to clipboard
The secret private key used for signing (32 bytes).
bytes private_key = 8;
Link copied to clipboard
The amount of step to send with the transaction.
bytes step_limit = 4;
Link copied to clipboard
UNIX epoch time (from 1970.1.1 00:00:00) in microseconds
int64 timestamp = 5;
Link copied to clipboard
Recipient address.
string to_address = 2;
Link copied to clipboard
Transfer amount (uint256, serialized little endian)
bytes value = 3;
Link copied to clipboard
Sender address.
string from_address = 1;
Link copied to clipboard
open fun getFromAddressBytes(): ByteString
Sender address.
string from_address = 1;
Link copied to clipboard
open fun getNetworkId(): ByteString
Network identifier
bytes network_id = 7;
Link copied to clipboard
open fun getNonce(): ByteString
Integer value increased by request to avoid replay attacks.
bytes nonce = 6;
Link copied to clipboard
open fun getPrivateKey(): ByteString
The secret private key used for signing (32 bytes).
bytes private_key = 8;
Link copied to clipboard
open fun getStepLimit(): ByteString
The amount of step to send with the transaction.
bytes step_limit = 4;
Link copied to clipboard
open fun getTimestamp(): Long
UNIX epoch time (from 1970.1.1 00:00:00) in microseconds
int64 timestamp = 5;
Link copied to clipboard
open fun getToAddress(): String
Recipient address.
string to_address = 2;
Link copied to clipboard
open fun getToAddressBytes(): ByteString
Recipient address.
string to_address = 2;
Link copied to clipboard
open fun getValue(): ByteString
Transfer amount (uint256, serialized little endian)
bytes value = 3;
Link copied to clipboard
Sender address.
string from_address = 1;
Link copied to clipboard
open fun setFromAddressBytes(value: ByteString): Icon.SigningInput.Builder
Sender address.
string from_address = 1;
Link copied to clipboard
open fun setNetworkId(value: ByteString): Icon.SigningInput.Builder
Network identifier
bytes network_id = 7;
Link copied to clipboard
open fun setNonce(value: ByteString): Icon.SigningInput.Builder
Integer value increased by request to avoid replay attacks.
bytes nonce = 6;
Link copied to clipboard
open fun setPrivateKey(value: ByteString): Icon.SigningInput.Builder
The secret private key used for signing (32 bytes).
bytes private_key = 8;
Link copied to clipboard
open fun setStepLimit(value: ByteString): Icon.SigningInput.Builder
The amount of step to send with the transaction.
bytes step_limit = 4;
Link copied to clipboard
UNIX epoch time (from 1970.1.1 00:00:00) in microseconds
int64 timestamp = 5;
Link copied to clipboard
Recipient address.
string to_address = 2;
Link copied to clipboard
open fun setToAddressBytes(value: ByteString): Icon.SigningInput.Builder
Recipient address.
string to_address = 2;
Link copied to clipboard
open fun setValue(value: ByteString): Icon.SigningInput.Builder
Transfer amount (uint256, serialized little endian)
bytes value = 3;