GLAMIDL Reference

withdraw_stake_account

Withdraws stake account.

Accounts

AccountRoleDescription
glam_statewritable`glam_state` account required by the `withdraw_stake_account` instruction (see program source for the full constraint).
glam_vaultwritable`glam_vault` account required by the `withdraw_stake_account` instruction (see program source for the full constraint).
glam_signersigner, writable`glam_signer` account required by the `withdraw_stake_account` instruction (see program source for the full constraint).
integration_authorityread-only`integration_authority` account required by the `withdraw_stake_account` instruction (see program source for the full constraint).
cpi_programread-only`cpi_program` account required by the `withdraw_stake_account` instruction (see program source for the full constraint).
glam_protocol_programread-only`glam_protocol_program` account required by the `withdraw_stake_account` instruction (see program source for the full constraint).
system_programread-only`system_program` account required by the `withdraw_stake_account` instruction (see program source for the full constraint).
statewritable`state` account required by the `withdraw_stake_account` instruction (see program source for the full constraint).
msol_mintwritable`msol_mint` account required by the `withdraw_stake_account` instruction (see program source for the full constraint).
burn_msol_fromwritable`burn_msol_from` account required by the `withdraw_stake_account` instruction (see program source for the full constraint).
treasury_msol_accountwritable`treasury_msol_account` account required by the `withdraw_stake_account` instruction (see program source for the full constraint).
validator_listwritable`validator_list` account required by the `withdraw_stake_account` instruction (see program source for the full constraint).
stake_listwritable`stake_list` account required by the `withdraw_stake_account` instruction (see program source for the full constraint).
stake_withdraw_authorityread-only`stake_withdraw_authority` account required by the `withdraw_stake_account` instruction (see program source for the full constraint).
stake_deposit_authorityread-only`stake_deposit_authority` account required by the `withdraw_stake_account` instruction (see program source for the full constraint).
stake_accountwritable`stake_account` account required by the `withdraw_stake_account` instruction (see program source for the full constraint).
split_stake_accountsigner, writable`split_stake_account` account required by the `withdraw_stake_account` instruction (see program source for the full constraint).
clockread-only`clock` account required by the `withdraw_stake_account` instruction (see program source for the full constraint).
token_programread-only`token_program` account required by the `withdraw_stake_account` instruction (see program source for the full constraint).
stake_programread-only`stake_program` account required by the `withdraw_stake_account` instruction (see program source for the full constraint).

Arguments

ArgumentTypeNotes
stake_indexu32
validator_indexu32
msol_amountu64
beneficiarypubkey

Policy & permissions

  • Marinade integration must be enabled.
  • Signer must be the GLAM owner or a delegate holding Marinade Unstake before withdrawing a stake account.