Builder

class Builder
A Transfer message
Protobuf type TW.Harmony.Proto.TransactionMessage

Functions

Link copied to clipboard
Amount to send in wei (uint256, serialized little endian)
bytes amount = 5;
Link copied to clipboard
From shard ID (uint256, serialized little endian)
bytes from_shard_id = 7;
Link copied to clipboard
Gas limit (uint256, serialized little endian)
bytes gas_limit = 3;
Link copied to clipboard
Gas price (uint256, serialized little endian)
bytes gas_price = 2;
Link copied to clipboard
Nonce (uint256, serialized little endian)
bytes nonce = 1;
Link copied to clipboard
Optional payload
bytes payload = 6;
Link copied to clipboard
Recipient's address.
string to_address = 4;
Link copied to clipboard
To Shard ID (uint256, serialized little endian)
bytes to_shard_id = 8;
Link copied to clipboard
open fun getAmount(): ByteString
Amount to send in wei (uint256, serialized little endian)
bytes amount = 5;
Link copied to clipboard
open fun getFromShardId(): ByteString
From shard ID (uint256, serialized little endian)
bytes from_shard_id = 7;
Link copied to clipboard
open fun getGasLimit(): ByteString
Gas limit (uint256, serialized little endian)
bytes gas_limit = 3;
Link copied to clipboard
open fun getGasPrice(): ByteString
Gas price (uint256, serialized little endian)
bytes gas_price = 2;
Link copied to clipboard
open fun getNonce(): ByteString
Nonce (uint256, serialized little endian)
bytes nonce = 1;
Link copied to clipboard
open fun getPayload(): ByteString
Optional payload
bytes payload = 6;
Link copied to clipboard
open fun getToAddress(): String
Recipient's address.
string to_address = 4;
Link copied to clipboard
open fun getToAddressBytes(): ByteString
Recipient's address.
string to_address = 4;
Link copied to clipboard
open fun getToShardId(): ByteString
To Shard ID (uint256, serialized little endian)
bytes to_shard_id = 8;
Link copied to clipboard
open fun setAmount(value: ByteString): Harmony.TransactionMessage.Builder
Amount to send in wei (uint256, serialized little endian)
bytes amount = 5;
Link copied to clipboard
From shard ID (uint256, serialized little endian)
bytes from_shard_id = 7;
Link copied to clipboard
open fun setGasLimit(value: ByteString): Harmony.TransactionMessage.Builder
Gas limit (uint256, serialized little endian)
bytes gas_limit = 3;
Link copied to clipboard
open fun setGasPrice(value: ByteString): Harmony.TransactionMessage.Builder
Gas price (uint256, serialized little endian)
bytes gas_price = 2;
Link copied to clipboard
open fun setNonce(value: ByteString): Harmony.TransactionMessage.Builder
Nonce (uint256, serialized little endian)
bytes nonce = 1;
Link copied to clipboard
open fun setPayload(value: ByteString): Harmony.TransactionMessage.Builder
Optional payload
bytes payload = 6;
Link copied to clipboard
Recipient's address.
string to_address = 4;
Link copied to clipboard
Recipient's address.
string to_address = 4;
Link copied to clipboard
To Shard ID (uint256, serialized little endian)
bytes to_shard_id = 8;