> ## Documentation Index
> Fetch the complete documentation index at: https://docs.glam.systems/llms.txt
> Use this file to discover all available pages before exploring further.

# Staking

> Stake SOL via native staking, LST pools, or Marinade

<Warning>
  Staking integrations (Native Stake, LST Stake Pools, and Marinade) are only supported in staging programs. Code is pending audit. Use the `--bypass-warning` flag to acknowledge and proceed.
</Warning>

## Native Staking

Manage native Solana stake accounts through the vault.

### List Stake Accounts

List all stake accounts owned by the vault:

```bash theme={null}
glam-cli stake list
```

Displays each stake account's address, lamport balance, and state (e.g., `active`, `deactivating`, `inactive`).

### Deactivate Stake Accounts

Deactivate one or more stake accounts:

```bash theme={null}
glam-cli stake deactivate <accounts...> [--yes]
```

* `<accounts...>`: Space-separated public keys of stake accounts to deactivate

### Withdraw from Stake Accounts

Withdraw SOL from deactivated stake accounts back to the vault:

```bash theme={null}
glam-cli stake withdraw <accounts...> [--yes]
```

* `<accounts...>`: Space-separated public keys of stake accounts to withdraw from

## LST Stake Pools

Stake SOL into liquid staking token (LST) pools or unstake LSTs back to SOL.

### Stake SOL

Stake SOL into a stake pool and receive LST tokens:

```bash theme={null}
glam-cli lst stake <stakepool> <amount> [--yes]
```

* `<stakepool>`: The stake pool address
* `<amount>`: Amount of SOL to stake

### Unstake LST

Unstake LST tokens and receive SOL in a stake account:

```bash theme={null}
glam-cli lst unstake <asset> <amount> [--deactivate] [--yes]
```

* `<asset>`: The LST mint address
* `<amount>`: Amount of LST to unstake
* `--deactivate`, `-d`: Automatically deactivate the resulting stake account

## Marinade

Stake and unstake SOL through Marinade Finance.

### Stake SOL (mSOL)

Stake SOL and receive mSOL:

```bash theme={null}
glam-cli marinade stake <amount> [--yes]
```

### Stake SOL (Native)

Stake SOL through Marinade Native (no mSOL token, direct stake account):

```bash theme={null}
glam-cli marinade stake-native <amount> [--yes]
```

### Withdraw Stake

Withdraw mSOL into a stake account:

```bash theme={null}
glam-cli marinade withdraw-stake <amount> [--deactivate] [--yes]
```

* `<amount>`: Amount of mSOL to withdraw
* `--deactivate`, `-d`: Automatically deactivate the resulting stake account
