Builder

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

Functions

Link copied to clipboard
.TW.Polkadot.Proto.Balance balance_call = 10;
Link copied to clipboard
Recent block hash, or genesis hash if era is not set
bytes block_hash = 1;
Link copied to clipboard
Optional time validity limit, recommended, for replay-protection.  Empty means Immortal.
.TW.Polkadot.Proto.Era era = 7;
Link copied to clipboard
Genesis block hash (identifies the chain)
bytes genesis_hash = 2;
Link copied to clipboard
Network type
uint32 network = 9;
Link copied to clipboard
Current account nonce
uint64 nonce = 3;
Link copied to clipboard
The secret private key used for signing (32 bytes).
bytes private_key = 8;
Link copied to clipboard
Specification version, e.g. 26.
uint32 spec_version = 4;
Link copied to clipboard
.TW.Polkadot.Proto.Staking staking_call = 11;
Link copied to clipboard
Optional tip to pay, big integer
bytes tip = 6;
Link copied to clipboard
Transaction version, e.g. 5.
uint32 transaction_version = 5;
Link copied to clipboard
open fun getBalanceCall(): Balance
.TW.Polkadot.Proto.Balance balance_call = 10;
Link copied to clipboard
open fun getBlockHash(): ByteString
Recent block hash, or genesis hash if era is not set
bytes block_hash = 1;
Link copied to clipboard
open fun getEra(): Era
Optional time validity limit, recommended, for replay-protection.  Empty means Immortal.
.TW.Polkadot.Proto.Era era = 7;
Link copied to clipboard
open fun getGenesisHash(): ByteString
Genesis block hash (identifies the chain)
bytes genesis_hash = 2;
Link copied to clipboard
open fun getNetwork(): Int
Network type
uint32 network = 9;
Link copied to clipboard
open fun getNonce(): Long
Current account nonce
uint64 nonce = 3;
Link copied to clipboard
open fun getPrivateKey(): ByteString
The secret private key used for signing (32 bytes).
bytes private_key = 8;
Link copied to clipboard
open fun getSpecVersion(): Int
Specification version, e.g. 26.
uint32 spec_version = 4;
Link copied to clipboard
open fun getStakingCall(): Staking
.TW.Polkadot.Proto.Staking staking_call = 11;
Link copied to clipboard
open fun getTip(): ByteString
Optional tip to pay, big integer
bytes tip = 6;
Link copied to clipboard
Transaction version, e.g. 5.
uint32 transaction_version = 5;
Link copied to clipboard
.TW.Polkadot.Proto.Balance balance_call = 10;
Link copied to clipboard
open fun hasEra(): Boolean
Optional time validity limit, recommended, for replay-protection.  Empty means Immortal.
.TW.Polkadot.Proto.Era era = 7;
Link copied to clipboard
.TW.Polkadot.Proto.Staking staking_call = 11;
Link copied to clipboard
.TW.Polkadot.Proto.Balance balance_call = 10;
Link copied to clipboard
Optional time validity limit, recommended, for replay-protection.  Empty means Immortal.
.TW.Polkadot.Proto.Era era = 7;
Link copied to clipboard
.TW.Polkadot.Proto.Staking staking_call = 11;
Link copied to clipboard
open fun setBalanceCall(builderForValue: Builder): Polkadot.SigningInput.Builder
.TW.Polkadot.Proto.Balance balance_call = 10;
Link copied to clipboard
open fun setBlockHash(value: ByteString): Polkadot.SigningInput.Builder
Recent block hash, or genesis hash if era is not set
bytes block_hash = 1;
Link copied to clipboard
open fun setEra(builderForValue: Builder): Polkadot.SigningInput.Builder
Optional time validity limit, recommended, for replay-protection.  Empty means Immortal.
.TW.Polkadot.Proto.Era era = 7;
Link copied to clipboard
open fun setGenesisHash(value: ByteString): Polkadot.SigningInput.Builder
Genesis block hash (identifies the chain)
bytes genesis_hash = 2;
Link copied to clipboard
Network type
uint32 network = 9;
Link copied to clipboard
Current account nonce
uint64 nonce = 3;
Link copied to clipboard
open fun setPrivateKey(value: ByteString): Polkadot.SigningInput.Builder
The secret private key used for signing (32 bytes).
bytes private_key = 8;
Link copied to clipboard
Specification version, e.g. 26.
uint32 spec_version = 4;
Link copied to clipboard
open fun setStakingCall(builderForValue: Builder): Polkadot.SigningInput.Builder
.TW.Polkadot.Proto.Staking staking_call = 11;
Link copied to clipboard
open fun setTip(value: ByteString): Polkadot.SigningInput.Builder
Optional tip to pay, big integer
bytes tip = 6;
Link copied to clipboard
Transaction version, e.g. 5.
uint32 transaction_version = 5;