Builder

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

Functions

Link copied to clipboard
Transfer amount
uint64 amount = 5;
Link copied to clipboard
Contract ID, e.g. "ONT"
string contract = 1;
Link copied to clipboard
Limit for gas used
uint64 gas_limit = 8;
Link copied to clipboard
Gas price
uint64 gas_price = 7;
Link copied to clipboard
Method, e.g. "transfer"
string method = 2;
Link copied to clipboard
Nonce (should be larger than in the last transaction of the account)
uint32 nonce = 10;
Link copied to clipboard
The secret private key used for signing (32 bytes).
bytes owner_private_key = 3;
Link copied to clipboard
Private key of the payer
bytes payer_private_key = 6;
Link copied to clipboard
base58 encode address string (160-bit number)
string query_address = 9;
Link copied to clipboard
base58 encode address string (160-bit number)
string to_address = 4;
Link copied to clipboard
open fun getAmount(): Long
Transfer amount
uint64 amount = 5;
Link copied to clipboard
open fun getContract(): String
Contract ID, e.g. "ONT"
string contract = 1;
Link copied to clipboard
open fun getContractBytes(): ByteString
Contract ID, e.g. "ONT"
string contract = 1;
Link copied to clipboard
open fun getGasLimit(): Long
Limit for gas used
uint64 gas_limit = 8;
Link copied to clipboard
open fun getGasPrice(): Long
Gas price
uint64 gas_price = 7;
Link copied to clipboard
open fun getMethod(): String
Method, e.g. "transfer"
string method = 2;
Link copied to clipboard
open fun getMethodBytes(): ByteString
Method, e.g. "transfer"
string method = 2;
Link copied to clipboard
open fun getNonce(): Int
Nonce (should be larger than in the last transaction of the account)
uint32 nonce = 10;
Link copied to clipboard
open fun getOwnerPrivateKey(): ByteString
The secret private key used for signing (32 bytes).
bytes owner_private_key = 3;
Link copied to clipboard
open fun getPayerPrivateKey(): ByteString
Private key of the payer
bytes payer_private_key = 6;
Link copied to clipboard
base58 encode address string (160-bit number)
string query_address = 9;
Link copied to clipboard
open fun getQueryAddressBytes(): ByteString
base58 encode address string (160-bit number)
string query_address = 9;
Link copied to clipboard
open fun getToAddress(): String
base58 encode address string (160-bit number)
string to_address = 4;
Link copied to clipboard
open fun getToAddressBytes(): ByteString
base58 encode address string (160-bit number)
string to_address = 4;
Link copied to clipboard
Transfer amount
uint64 amount = 5;
Link copied to clipboard
Contract ID, e.g. "ONT"
string contract = 1;
Link copied to clipboard
open fun setContractBytes(value: ByteString): Ontology.SigningInput.Builder
Contract ID, e.g. "ONT"
string contract = 1;
Link copied to clipboard
Limit for gas used
uint64 gas_limit = 8;
Link copied to clipboard
Gas price
uint64 gas_price = 7;
Link copied to clipboard
Method, e.g. "transfer"
string method = 2;
Link copied to clipboard
open fun setMethodBytes(value: ByteString): Ontology.SigningInput.Builder
Method, e.g. "transfer"
string method = 2;
Link copied to clipboard
Nonce (should be larger than in the last transaction of the account)
uint32 nonce = 10;
Link copied to clipboard
The secret private key used for signing (32 bytes).
bytes owner_private_key = 3;
Link copied to clipboard
Private key of the payer
bytes payer_private_key = 6;
Link copied to clipboard
base58 encode address string (160-bit number)
string query_address = 9;
Link copied to clipboard
base58 encode address string (160-bit number)
string query_address = 9;
Link copied to clipboard
base58 encode address string (160-bit number)
string to_address = 4;
Link copied to clipboard
base58 encode address string (160-bit number)
string to_address = 4;