Marinade Integration StagingStaging
withdraw_stake_account
Withdraws stake account.
Accounts
| Account | Role | Description |
|---|---|---|
| glam_state | writable | `glam_state` account required by the `withdraw_stake_account` instruction (see program source for the full constraint). |
| glam_vault | writable | `glam_vault` account required by the `withdraw_stake_account` instruction (see program source for the full constraint). |
| glam_signer | signer, writable | `glam_signer` account required by the `withdraw_stake_account` instruction (see program source for the full constraint). |
| integration_authority | read-only | `integration_authority` account required by the `withdraw_stake_account` instruction (see program source for the full constraint). |
| cpi_program | read-only | `cpi_program` account required by the `withdraw_stake_account` instruction (see program source for the full constraint). |
| glam_protocol_program | read-only | `glam_protocol_program` account required by the `withdraw_stake_account` instruction (see program source for the full constraint). |
| system_program | read-only | `system_program` account required by the `withdraw_stake_account` instruction (see program source for the full constraint). |
| state | writable | `state` account required by the `withdraw_stake_account` instruction (see program source for the full constraint). |
| msol_mint | writable | `msol_mint` account required by the `withdraw_stake_account` instruction (see program source for the full constraint). |
| burn_msol_from | writable | `burn_msol_from` account required by the `withdraw_stake_account` instruction (see program source for the full constraint). |
| treasury_msol_account | writable | `treasury_msol_account` account required by the `withdraw_stake_account` instruction (see program source for the full constraint). |
| validator_list | writable | `validator_list` account required by the `withdraw_stake_account` instruction (see program source for the full constraint). |
| stake_list | writable | `stake_list` account required by the `withdraw_stake_account` instruction (see program source for the full constraint). |
| stake_withdraw_authority | read-only | `stake_withdraw_authority` account required by the `withdraw_stake_account` instruction (see program source for the full constraint). |
| stake_deposit_authority | read-only | `stake_deposit_authority` account required by the `withdraw_stake_account` instruction (see program source for the full constraint). |
| stake_account | writable | `stake_account` account required by the `withdraw_stake_account` instruction (see program source for the full constraint). |
| split_stake_account | signer, writable | `split_stake_account` account required by the `withdraw_stake_account` instruction (see program source for the full constraint). |
| clock | read-only | `clock` account required by the `withdraw_stake_account` instruction (see program source for the full constraint). |
| token_program | read-only | `token_program` account required by the `withdraw_stake_account` instruction (see program source for the full constraint). |
| stake_program | read-only | `stake_program` account required by the `withdraw_stake_account` instruction (see program source for the full constraint). |
Arguments
| Argument | Type | Notes |
|---|---|---|
| stake_index | u32 | |
| validator_index | u32 | |
| msol_amount | u64 | |
| beneficiary | pubkey |
Policy & permissions
- Marinade integration must be enabled.
- Signer must be the GLAM owner or a delegate holding Marinade
Unstakebefore withdrawing a stake account.