Instruction: Initialize
This instruction initializes an uninitialized stake account with authorization and lockup information.
Input structure
Parameters
authorized
: The staker and withdrawer to be authorized.lockup
: The lockup information.
Lockup
unix_timestamp
: Unix timestamp when the lockup expires.epoch
: Epoch when the lockup expires.custodian
: Custodian key on a transaction exempts the operation from lockup constraints.
authorized
: The staker and withdrawer to be authorized.lockup
: The lockup information.
Accounts
stake_account
: The uninitialized stake account.Signer: No.
Init: No.
PDA: No.
Writable: Yes.
Rent checks: The account must be rent-exempt.
Ownership checks: The account must be owned by the program.
Address checks: None.
rent
: The account must be a rent sysvar.
Additional checks and behavior
The size of the stake account must be equal to the size of
StakeStateV2
.The stake account must be uninitialized.
The stake account must have enough lamports to be rent-exempt.
The stake account is initialized with the provided
authorized
andlockup
information.