Skip to content

internet-court/internet-court-skill / vendored/sendaifun/glam

Solana vault management via GLAM Protocol. Triggers: glam, glam-cli, glam-sdk, vault create/manage, tokenized vault, share class, DeFi vault, treasury, asset management, access control, delegate permissions, Jupiter swap, Kamino lending/borrow/vaults/farms, staking (Marinade/native/SPL/Sanctum/LST), cross-chain USDC (CCTP), timelock, subscription/redemption, NAV pricing, token transfer. Supports CLI and TypeScript SDK.

resources/cli/alt.md

View on GitHub
# CLI: Address Lookup Tables (ALT)

Manage Address Lookup Tables to optimize transaction sizes.

> **Advanced feature**: ALTs reduce transaction size by storing frequently-used account addresses. Required for complex transactions that would otherwise exceed size limits.

## Commands

### `glam-cli alt list`

List address lookup tables owned by the vault.

```bash
glam-cli alt list
```

### `glam-cli alt create`

Create a new address lookup table for the vault.

```bash
glam-cli alt create [--yes]
```

**Options:**
| Flag | Description |
|------|-------------|
| `-y, --yes` | Skip confirmation prompt |

**Note:** Requires `GLAM_API` environment variable to be set.

### `glam-cli alt extend`

Extend an existing lookup table with additional addresses.

```bash
glam-cli alt extend <TABLE> [--yes]
```

**Arguments:**
| Argument | Description |
|----------|-------------|
| `TABLE` | Address lookup table public key |

**Options:**
| Flag | Description |
|------|-------------|
| `-y, --yes` | Skip confirmation prompt |

---

## When to Use ALTs

ALTs are useful when:
- Transactions fail due to size limits
- You're performing complex multi-protocol operations
- You want to reduce transaction fees (smaller = cheaper)

## Workflow

```bash
# 1. Check existing lookup tables
glam-cli alt list

# 2. Create new lookup table if needed
glam-cli alt create

# 3. Extend with more addresses if needed
glam-cli alt extend <TABLE_ADDRESS>
```

---

## Important Notes

- **API required**: ALT creation requires the GLAM API (`GLAM_API` env var)
- **Advanced users**: Most users won't need to manage ALTs directly
- **Automatic handling**: Many CLI commands handle ALTs automatically
receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementationStars: 322kUpdated Claude CodeCodexVerifiedInstall
requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirementsStars: 322kUpdated Claude CodeCodexVerifiedInstall
using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallbackStars: 322kUpdated Claude CodeCodexVerifiedInstall
verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions alwaysStars: 322kUpdated Claude CodeCodexVerifiedInstall