GLAMIDL Reference

withdraw_sol

Withdraws sol.

Accounts

AccountRoleDescription
glam_statewritable`glam_state` account required by the `withdraw_sol` instruction (see program source for the full constraint).
glam_vaultwritable`glam_vault` account required by the `withdraw_sol` instruction (see program source for the full constraint).
glam_signersigner, writable`glam_signer` account required by the `withdraw_sol` instruction (see program source for the full constraint).
integration_authorityread-only`integration_authority` account required by the `withdraw_sol` instruction (see program source for the full constraint).
cpi_programread-only`cpi_program` account required by the `withdraw_sol` instruction (see program source for the full constraint).
glam_protocol_programread-only`glam_protocol_program` account required by the `withdraw_sol` instruction (see program source for the full constraint).
system_programread-only`system_program` account required by the `withdraw_sol` instruction (see program source for the full constraint).
stake_poolwritable`stake_pool` account required by the `withdraw_sol` instruction (see program source for the full constraint).
stake_pool_withdraw_authorityread-only`stake_pool_withdraw_authority` account required by the `withdraw_sol` instruction (see program source for the full constraint).
pool_tokens_fromwritable`pool_tokens_from` account required by the `withdraw_sol` instruction (see program source for the full constraint).
reserve_stakewritable`reserve_stake` account required by the `withdraw_sol` instruction (see program source for the full constraint).
fee_accountwritable`fee_account` account required by the `withdraw_sol` instruction (see program source for the full constraint).
pool_mintwritable`pool_mint` account required by the `withdraw_sol` instruction (see program source for the full constraint).
clockread-only`clock` account required by the `withdraw_sol` instruction (see program source for the full constraint).
stake_historyread-only`stake_history` account required by the `withdraw_sol` instruction (see program source for the full constraint).
stake_programread-only`stake_program` account required by the `withdraw_sol` instruction (see program source for the full constraint).
token_programread-only`token_program` account required by the `withdraw_sol` instruction (see program source for the full constraint).

Arguments

ArgumentTypeNotes
pool_tokens_inu64
minimum_lamports_outoption<u64>

Policy & permissions

  • The target protocol is derived from the supplied stake-pool program and must be enabled on the GLAM state.
  • Signer must be the GLAM owner or a delegate holding Stake Pool WithdrawSol before withdrawing SOL.