Builder

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

Functions

Link copied to clipboard
/ Chain ID string, mainnet, testnet and privatenet
string chain_id = 1;
Link copied to clipboard
/ Fee amount in TFuel wei for the transaction (uint256, serialized little endian)
bytes fee = 6;
Link copied to clipboard
/ The secret private key used for signing (32 bytes).
bytes private_key = 7;
Link copied to clipboard
/ Sequence number of the transaction for the sender address
uint64 sequence = 5;
Link copied to clipboard
/ TFuel token amount to send in wei (uint256, serialized little endian)
bytes tfuel_amount = 4;
Link copied to clipboard
/ Theta token amount to send in wei (uint256, serialized little endian)
bytes theta_amount = 3;
Link copied to clipboard
/ Recipient address
string to_address = 2;
Link copied to clipboard
open fun getChainId(): String
/ Chain ID string, mainnet, testnet and privatenet
string chain_id = 1;
Link copied to clipboard
open fun getChainIdBytes(): ByteString
/ Chain ID string, mainnet, testnet and privatenet
string chain_id = 1;
Link copied to clipboard
open fun getFee(): ByteString
/ Fee amount in TFuel wei for the transaction (uint256, serialized little endian)
bytes fee = 6;
Link copied to clipboard
open fun getPrivateKey(): ByteString
/ The secret private key used for signing (32 bytes).
bytes private_key = 7;
Link copied to clipboard
open fun getSequence(): Long
/ Sequence number of the transaction for the sender address
uint64 sequence = 5;
Link copied to clipboard
open fun getTfuelAmount(): ByteString
/ TFuel token amount to send in wei (uint256, serialized little endian)
bytes tfuel_amount = 4;
Link copied to clipboard
open fun getThetaAmount(): ByteString
/ Theta token amount to send in wei (uint256, serialized little endian)
bytes theta_amount = 3;
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
/ Chain ID string, mainnet, testnet and privatenet
string chain_id = 1;
Link copied to clipboard
open fun setChainIdBytes(value: ByteString): Theta.SigningInput.Builder
/ Chain ID string, mainnet, testnet and privatenet
string chain_id = 1;
Link copied to clipboard
open fun setFee(value: ByteString): Theta.SigningInput.Builder
/ Fee amount in TFuel wei for the transaction (uint256, serialized little endian)
bytes fee = 6;
Link copied to clipboard
open fun setPrivateKey(value: ByteString): Theta.SigningInput.Builder
/ The secret private key used for signing (32 bytes).
bytes private_key = 7;
Link copied to clipboard
/ Sequence number of the transaction for the sender address
uint64 sequence = 5;
Link copied to clipboard
open fun setTfuelAmount(value: ByteString): Theta.SigningInput.Builder
/ TFuel token amount to send in wei (uint256, serialized little endian)
bytes tfuel_amount = 4;
Link copied to clipboard
open fun setThetaAmount(value: ByteString): Theta.SigningInput.Builder
/ Theta token amount to send in wei (uint256, serialized little endian)
bytes theta_amount = 3;
Link copied to clipboard
/ Recipient address
string to_address = 2;
Link copied to clipboard
open fun setToAddressBytes(value: ByteString): Theta.SigningInput.Builder
/ Recipient address
string to_address = 2;