Builder

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

Functions

Link copied to clipboard
open fun addActions(builderForValue: Builder): NEAR.SigningInput.Builder
open fun addActions(value: Action): NEAR.SigningInput.Builder
open fun addActions(index: Int, builderForValue: Builder): NEAR.SigningInput.Builder
open fun addActions(index: Int, value: Action): NEAR.SigningInput.Builder
Payload action(s)
repeated .TW.NEAR.Proto.Action actions = 5;
Link copied to clipboard
open fun addAllActions(values: Iterable<out Action>): NEAR.SigningInput.Builder
Payload action(s)
repeated .TW.NEAR.Proto.Action actions = 5;
Link copied to clipboard
Payload action(s)
repeated .TW.NEAR.Proto.Action actions = 5;
Link copied to clipboard
Recent block hash
bytes block_hash = 4;
Link copied to clipboard
Nonce (should be larger than in the last transaction of the account)
uint64 nonce = 2;
Link copied to clipboard
The secret private key used for signing (32 bytes).
bytes private_key = 6;
Link copied to clipboard
ID of the receiver
string receiver_id = 3;
Link copied to clipboard
ID of the sender
string signer_id = 1;
Link copied to clipboard
open fun getActions(index: Int): Action
Payload action(s)
repeated .TW.NEAR.Proto.Action actions = 5;
Link copied to clipboard
open fun getActionsCount(): Int
Payload action(s)
repeated .TW.NEAR.Proto.Action actions = 5;
Link copied to clipboard
open fun getActionsList(): List<Action>
Payload action(s)
repeated .TW.NEAR.Proto.Action actions = 5;
Link copied to clipboard
open fun getBlockHash(): ByteString
Recent block hash
bytes block_hash = 4;
Link copied to clipboard
open fun getNonce(): Long
Nonce (should be larger than in the last transaction of the account)
uint64 nonce = 2;
Link copied to clipboard
open fun getPrivateKey(): ByteString
The secret private key used for signing (32 bytes).
bytes private_key = 6;
Link copied to clipboard
open fun getReceiverId(): String
ID of the receiver
string receiver_id = 3;
Link copied to clipboard
open fun getReceiverIdBytes(): ByteString
ID of the receiver
string receiver_id = 3;
Link copied to clipboard
open fun getSignerId(): String
ID of the sender
string signer_id = 1;
Link copied to clipboard
open fun getSignerIdBytes(): ByteString
ID of the sender
string signer_id = 1;
Link copied to clipboard
Payload action(s)
repeated .TW.NEAR.Proto.Action actions = 5;
Link copied to clipboard
open fun setActions(index: Int, builderForValue: Builder): NEAR.SigningInput.Builder
open fun setActions(index: Int, value: Action): NEAR.SigningInput.Builder
Payload action(s)
repeated .TW.NEAR.Proto.Action actions = 5;
Link copied to clipboard
open fun setBlockHash(value: ByteString): NEAR.SigningInput.Builder
Recent block hash
bytes block_hash = 4;
Link copied to clipboard
Nonce (should be larger than in the last transaction of the account)
uint64 nonce = 2;
Link copied to clipboard
open fun setPrivateKey(value: ByteString): NEAR.SigningInput.Builder
The secret private key used for signing (32 bytes).
bytes private_key = 6;
Link copied to clipboard
ID of the receiver
string receiver_id = 3;
Link copied to clipboard
open fun setReceiverIdBytes(value: ByteString): NEAR.SigningInput.Builder
ID of the receiver
string receiver_id = 3;
Link copied to clipboard
ID of the sender
string signer_id = 1;
Link copied to clipboard
open fun setSignerIdBytes(value: ByteString): NEAR.SigningInput.Builder
ID of the sender
string signer_id = 1;