Function prepareRegisterProposerOnlineTransactions
- prepareRegisterProposerOnlineTransactions(
consensusConfig: ConsensusConfig,
consensusState: ConsensusState,
senderAddr: string,
proposerAddr: string,
voteKey: Buffer<ArrayBufferLike>,
selectionKey: Buffer<ArrayBufferLike>,
stateProofKey: Buffer<ArrayBufferLike>,
voteFirstRound: number | bigint,
voteLastRound: number | bigint,
voteKeyDilution: number | bigint,
params: SuggestedParams,
): Transaction[] Parameters
- consensusConfig: ConsensusConfig
consensus application and xALGO config
- consensusState: ConsensusState
current state of the consensus application
- senderAddr: string
account address for the sender
- proposerAddr: string
account address of the proposer
- voteKey: Buffer<ArrayBufferLike>
vote key
- selectionKey: Buffer<ArrayBufferLike>
selection key
- stateProofKey: Buffer<ArrayBufferLike>
state proof key
- voteFirstRound: number | bigint
vote first round
- voteLastRound: number | bigint
vote last round
- voteKeyDilution: number | bigint
vote key dilution
- params: SuggestedParams
suggested params for the transactions with the fees overwritten
Returns Transaction[]
Transaction register online transaction
- consensusConfig: ConsensusConfig
Only for third-party node runners. Returns a transaction to register a proposer online.