Function prepareDelayedStakeTransactions
- prepareDelayedStakeTransactions(
consensusConfig: ConsensusConfig,
consensusState: ConsensusState,
senderAddr: string,
receiverAddr: string,
amount: number | bigint,
nonce: Uint8Array<ArrayBufferLike>,
params: SuggestedParams,
includeBoxMinBalancePayment?: boolean,
note?: Uint8Array<ArrayBufferLike>,
): Transaction[] Parameters
- consensusConfig: ConsensusConfig
consensus application and xALGO config
- consensusState: ConsensusState
current state of the consensus application
- senderAddr: string
account address for the sender
- receiverAddr: string
account address to receive the xALGO at (typically the user)
- amount: number | bigint
amount of ALGO to send
- nonce: Uint8Array<ArrayBufferLike>
used to generate the delayed mint box (must be two bytes in length)
- params: SuggestedParams
suggested params for the transactions with the fees overwritten
- includeBoxMinBalancePayment: boolean = true
whether to include ALGO payment to app for box min balance
Optional
note: Uint8Array<ArrayBufferLike>optional note to distinguish who is the minter (must pass to be eligible for revenue share)
Returns Transaction[]
Transaction[] stake transactions
- consensusConfig: ConsensusConfig
Returns a group transaction to stake ALGO and get xALGO after 320 rounds.