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/transfer.md

View on GitHub
# CLI: Token Transfers

Transfer SPL tokens from vault to allowlisted destinations.

## Commands

### `glam-cli transfer <AMOUNT> <TO>`

Transfer tokens to a destination address.

```bash
glam-cli transfer <AMOUNT> <TO> [OPTIONS] [--yes]
```

**Arguments:**
| Argument | Description |
|----------|-------------|
| `AMOUNT` | Amount to transfer |
| `TO` | Destination address (must be allowlisted) |

**Options:**
| Flag | Description |
|------|-------------|
| `-t, --token <MINT>` | Token mint address (defaults to wSOL) |
| `-y, --yes` | Skip confirmation prompt |

**Examples:**
```bash
# Transfer 10 wSOL
glam-cli transfer 10 <DESTINATION_PUBKEY>

# Transfer 100 USDC
glam-cli transfer 100 <DESTINATION_PUBKEY> --token EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
```

### `glam-cli transfer view-policy`

View the token transfer allowlist.

```bash
glam-cli transfer view-policy
```

### `glam-cli transfer allowlist-destination`

Add a destination address to the transfer allowlist.

```bash
glam-cli transfer allowlist-destination <PUBKEY> [--yes]
```

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

### `glam-cli transfer remove-destination`

Remove a destination from the allowlist.

```bash
glam-cli transfer remove-destination <PUBKEY> [--yes]
```

---

## Workflow

```bash
# 1. Check current allowlist
glam-cli transfer view-policy

# 2. Add destination to allowlist (required before transferring)
glam-cli transfer allowlist-destination <DESTINATION_PUBKEY>

# 3. Transfer tokens
glam-cli transfer 100 <DESTINATION_PUBKEY> --token <MINT>

# 4. Remove destination if no longer needed
glam-cli transfer remove-destination <DESTINATION_PUBKEY>
```

---

## Important Notes

- **Allowlist required**: Destinations must be allowlisted before transfers
- **Default token**: If no `--token` specified, transfers wSOL
- **Security**: Use allowlist to prevent unauthorized fund movement
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