Builder

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

Functions

Link copied to clipboard
open fun addAllClauses(values: Iterable<out Clause>): VeChain.SigningInput.Builder
/ An array of Clause objects.
/
/ Each clause contains fields To, Value and Data to enable a single transaction to carry multiple tasks issued
/ by the transaction sender.
repeated .TW.VeChain.Proto.Clause clauses = 4;
Link copied to clipboard
open fun addClauses(builderForValue: Builder): VeChain.SigningInput.Builder
open fun addClauses(value: Clause): VeChain.SigningInput.Builder
open fun addClauses(index: Int, builderForValue: Builder): VeChain.SigningInput.Builder
open fun addClauses(index: Int, value: Clause): VeChain.SigningInput.Builder
/ An array of Clause objects.
/
/ Each clause contains fields To, Value and Data to enable a single transaction to carry multiple tasks issued
/ by the transaction sender.
repeated .TW.VeChain.Proto.Clause clauses = 4;
Link copied to clipboard
/ Reference to a specific block.
uint64 block_ref = 2;
Link copied to clipboard
/ Last byte of the genesis block ID which is used to identify a blockchain to prevent the cross-chain replay attack.
uint32 chain_tag = 1;
Link copied to clipboard
/ An array of Clause objects.
/
/ Each clause contains fields To, Value and Data to enable a single transaction to carry multiple tasks issued
/ by the transaction sender.
repeated .TW.VeChain.Proto.Clause clauses = 4;
Link copied to clipboard
/ ID of the transaction on which the current transaction depends.
bytes depends_on = 7;
Link copied to clipboard
/ How long, in terms of the number of blocks, the transaction will be allowed to be mined in VeChainThor.
uint32 expiration = 3;
Link copied to clipboard
/ Maximum amount of gas allowed to pay for the transaction.
uint64 gas = 6;
Link copied to clipboard
/ Coefficient used to calculate the gas price for the transaction.
uint32 gas_price_coef = 5;
Link copied to clipboard
/ Number set by user.
uint64 nonce = 8;
Link copied to clipboard
/ The secret private key used for signing (32 bytes).
bytes private_key = 9;
Link copied to clipboard
open fun getBlockRef(): Long
/ Reference to a specific block.
uint64 block_ref = 2;
Link copied to clipboard
open fun getChainTag(): Int
/ Last byte of the genesis block ID which is used to identify a blockchain to prevent the cross-chain replay attack.
uint32 chain_tag = 1;
Link copied to clipboard
open fun getClauses(index: Int): Clause
/ An array of Clause objects.
/
/ Each clause contains fields To, Value and Data to enable a single transaction to carry multiple tasks issued
/ by the transaction sender.
repeated .TW.VeChain.Proto.Clause clauses = 4;
Link copied to clipboard
open fun getClausesCount(): Int
/ An array of Clause objects.
/
/ Each clause contains fields To, Value and Data to enable a single transaction to carry multiple tasks issued
/ by the transaction sender.
repeated .TW.VeChain.Proto.Clause clauses = 4;
Link copied to clipboard
open fun getClausesList(): List<Clause>
/ An array of Clause objects.
/
/ Each clause contains fields To, Value and Data to enable a single transaction to carry multiple tasks issued
/ by the transaction sender.
repeated .TW.VeChain.Proto.Clause clauses = 4;
Link copied to clipboard
open fun getDependsOn(): ByteString
/ ID of the transaction on which the current transaction depends.
bytes depends_on = 7;
Link copied to clipboard
open fun getExpiration(): Int
/ How long, in terms of the number of blocks, the transaction will be allowed to be mined in VeChainThor.
uint32 expiration = 3;
Link copied to clipboard
open fun getGas(): Long
/ Maximum amount of gas allowed to pay for the transaction.
uint64 gas = 6;
Link copied to clipboard
open fun getGasPriceCoef(): Int
/ Coefficient used to calculate the gas price for the transaction.
uint32 gas_price_coef = 5;
Link copied to clipboard
open fun getNonce(): Long
/ Number set by user.
uint64 nonce = 8;
Link copied to clipboard
open fun getPrivateKey(): ByteString
/ The secret private key used for signing (32 bytes).
bytes private_key = 9;
Link copied to clipboard
/ An array of Clause objects.
/
/ Each clause contains fields To, Value and Data to enable a single transaction to carry multiple tasks issued
/ by the transaction sender.
repeated .TW.VeChain.Proto.Clause clauses = 4;
Link copied to clipboard
/ Reference to a specific block.
uint64 block_ref = 2;
Link copied to clipboard
/ Last byte of the genesis block ID which is used to identify a blockchain to prevent the cross-chain replay attack.
uint32 chain_tag = 1;
Link copied to clipboard
open fun setClauses(index: Int, builderForValue: Builder): VeChain.SigningInput.Builder
open fun setClauses(index: Int, value: Clause): VeChain.SigningInput.Builder
/ An array of Clause objects.
/
/ Each clause contains fields To, Value and Data to enable a single transaction to carry multiple tasks issued
/ by the transaction sender.
repeated .TW.VeChain.Proto.Clause clauses = 4;
Link copied to clipboard
open fun setDependsOn(value: ByteString): VeChain.SigningInput.Builder
/ ID of the transaction on which the current transaction depends.
bytes depends_on = 7;
Link copied to clipboard
/ How long, in terms of the number of blocks, the transaction will be allowed to be mined in VeChainThor.
uint32 expiration = 3;
Link copied to clipboard
/ Maximum amount of gas allowed to pay for the transaction.
uint64 gas = 6;
Link copied to clipboard
/ Coefficient used to calculate the gas price for the transaction.
uint32 gas_price_coef = 5;
Link copied to clipboard
/ Number set by user.
uint64 nonce = 8;
Link copied to clipboard
open fun setPrivateKey(value: ByteString): VeChain.SigningInput.Builder
/ The secret private key used for signing (32 bytes).
bytes private_key = 9;