Builder

class Builder
Register a Candidate
Protobuf type TW.IoTeX.Proto.Staking.CandidateRegister

Functions

Link copied to clipboard
Link copied to clipboard
.TW.IoTeX.Proto.Staking.CandidateBasicInfo candidate = 1;
Link copied to clipboard
if ownerAddress is absent, owner of candidate is the sender
string ownerAddress = 5;
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
uint32 stakedDuration = 3;
Link copied to clipboard
open fun getAutoStake(): Boolean
bool autoStake = 4;
Link copied to clipboard
open fun getCandidate(): CandidateBasicInfo
.TW.IoTeX.Proto.Staking.CandidateBasicInfo candidate = 1;
Link copied to clipboard
if ownerAddress is absent, owner of candidate is the sender
string ownerAddress = 5;
Link copied to clipboard
open fun getOwnerAddressBytes(): ByteString
if ownerAddress is absent, owner of candidate is the sender
string ownerAddress = 5;
Link copied to clipboard
open fun getPayload(): ByteString
bytes payload = 6;
Link copied to clipboard
string stakedAmount = 2;
Link copied to clipboard
open fun getStakedAmountBytes(): ByteString
string stakedAmount = 2;
Link copied to clipboard
uint32 stakedDuration = 3;
Link copied to clipboard
open fun hasCandidate(): Boolean
.TW.IoTeX.Proto.Staking.CandidateBasicInfo candidate = 1;
Link copied to clipboard
open fun mergeCandidate(value: CandidateBasicInfo): IoTeX.Staking.CandidateRegister.Builder
.TW.IoTeX.Proto.Staking.CandidateBasicInfo candidate = 1;
Link copied to clipboard
bool autoStake = 4;
Link copied to clipboard
open fun setCandidate(builderForValue: Builder): IoTeX.Staking.CandidateRegister.Builder
open fun setCandidate(value: CandidateBasicInfo): IoTeX.Staking.CandidateRegister.Builder
.TW.IoTeX.Proto.Staking.CandidateBasicInfo candidate = 1;
Link copied to clipboard
if ownerAddress is absent, owner of candidate is the sender
string ownerAddress = 5;
Link copied to clipboard
if ownerAddress is absent, owner of candidate is the sender
string ownerAddress = 5;
Link copied to clipboard
bytes payload = 6;
Link copied to clipboard
string stakedAmount = 2;
Link copied to clipboard
string stakedAmount = 2;
Link copied to clipboard
uint32 stakedDuration = 3;