solana_stake_program

Module stake_state

Source
Expand description

Stake state

  • delegate stakes to vote accounts
  • keep track of rewards
  • own mining pools

Structs§

Authorized
Delegation
Lockup
Meta
Stake

Enums§

StakeAuthorize
StakeStateDeprecated
StakeStateV2

Constants§

DEFAULT_SLASH_PENALTY
DEFAULT_WARMUP_COOLDOWN_RATE
NEW_WARMUP_COOLDOWN_RATE

Functions§

authorize
Authorize the given pubkey to manage stake (deactivate, withdraw). This may be called multiple times, but will implicitly withdraw authorization from the previously authorized staker. The default staker is the owner of the stake account’s pubkey.
authorize_with_seed
authorized_from
create_account
create_account_with_activation_epoch
create_lockup_stake_account
create_stake_history_from_delegations
deactivate
delegate
delegation_from
from
initialize
lockup_from
merge
meta_from
move_lamports
move_stake
new_stake_history_entry
set_lockup
split
stake_from
warmup_cooldown_rate
withdraw

Type Aliases§

RewriteStakeStatus
StakeActivationStatus