Module spl_stake_pool::instruction
source · Expand description
Instruction types
Enums
- Defines which authority to update in the
SetFundingAuthority
instruction - Defines which validator vote account is set during the
SetPreferredValidator
instruction - Instructions supported by the StakePool program.
Functions
- Creates
AddValidatorToPool
instruction (add new validator stake account to the pool) - Create an
AddValidatorToPool
instruction given an existing stake pool and vote account - Creates
CleanupRemovedValidatorEntries
instruction (removes entries from the validator list) - Creates an instruction to create metadata using the mpl token metadata program for the pool token
- Creates
DecreaseAdditionalValidatorStake
instruction (rebalance from validator account to transient account) - Create a
DecreaseAdditionalValidatorStake
instruction given an existing stake pool and vote account - decrease_validator_stakeDeprecatedCreates
DecreaseValidatorStake
instruction (rebalance from validator account to transient account) - Creates
DecreaseValidatorStakeWithReserve
instruction (rebalance from validator account to transient account) - Create a
DecreaseValidatorStake
instruction given an existing stake pool and vote account - Creates instruction to deposit SOL directly into a stake pool.
- Creates instruction required to deposit SOL directly into a stake pool. The difference with
deposit_sol()
is that a deposit authority must sign this instruction. - Creates instruction to deposit SOL directly into a stake pool with slippage constraint.
- Creates instruction to deposit SOL directly into a stake pool with slippage constraint.
- Creates instructions required to deposit into a stake pool, given a stake account owned by the user.
- Creates instructions required to deposit into a stake pool, given a stake account owned by the user. The difference with
deposit()
is that a deposit authority must sign this instruction, which is required for private pools. - Creates instructions required to deposit into a stake pool with slippage, given a stake account owned by the user. The difference with
deposit()
is that a deposit authority must sign this instruction, which is required for private pools. - Creates instructions to deposit into a stake pool with slippage
- Creates
IncreaseAdditionalValidatorStake
instruction (rebalance from reserve account to transient account) - Create an
IncreaseAdditionalValidatorStake
instruction given an existing stake pool and vote account - Creates
IncreaseValidatorStake
instruction (rebalance from reserve account to transient account) - Create an
IncreaseValidatorStake
instruction given an existing stake pool and vote account - Creates an ‘initialize’ instruction.
- Creates
Redelegate
instruction (rebalance from one validator account to another) - Creates
RemoveValidatorFromPool
instruction (remove validator stake account from the pool) - Create an
RemoveValidatorFromPool
instruction given an existing stake pool and vote account - Creates a ‘set fee’ instruction.
- Creates a ‘SetFundingAuthority’ instruction.
- Creates a ‘set manager’ instruction.
- Creates
SetPreferredDepositValidator
instruction - Creates a ‘set staker’ instruction.
- Creates all
UpdateValidatorListBalance
andUpdateStakePoolBalance
instructions for fully updating a stake pool each epoch - Creates
UpdateStakePoolBalance
instruction (pool balance from the stake account list balances) - Creates an instruction to update metadata in the mpl token metadata program account for the pool token
- Creates
UpdateValidatorListBalance
instruction (update validator stake account balances) - Creates instruction required to withdraw SOL directly from a stake pool.
- Creates instruction required to withdraw SOL directly from a stake pool. The difference with
withdraw_sol()
is that the sol withdraw authority must sign this instruction. - Creates instruction required to withdraw SOL directly from a stake pool with a slippage constraint. The difference with
withdraw_sol()
is that the sol withdraw authority must sign this instruction. - Creates instruction required to withdraw SOL directly from a stake pool with slippage constraints.
- Creates a ‘WithdrawStake’ instruction.
- Creates a ‘WithdrawStakeWithSlippage’ instruction.