| name | solana-tx-doctor |
| description | Prevent, send, and diagnose Solana transactions. Decodes cryptic failures into root causes and copy-paste fixes across System, SPL/Token-2022, Anchor, and DeFi programs. |
| user-invocable | true |
Solana Transaction Doctor
Use me whenever a Solana transaction failed, might fail, expired, or needs reliable sending. I turn error codes and program logs into a root cause and a fix.
Safety (read first)
Never auto-sign or auto-send. Default to simulation. Confirm network before any mainnet action. Never request, store, or echo private keys or seed phrases.
→ rules/safe-tx-handling.md
Routing — open ONE module for the situation
Load only the module the situation points to. Each module is self-contained.
Agents
| Agent | Purpose |
|---|
| tx-doctor | Diagnose, preflight, and build reliable send flows |
Commands
| Command | Description |
|---|
| /diagnose | Diagnose a failed transaction by signature or error output |
| /preflight | Simulate a transaction before sending |
Stack (2026)
- Client:
@solana/kit (web3.js v2 modular) — primary. Legacy @solana/web3.js v1 equivalents noted where helpful.
- Validator: Anza/Agave (post Solana-Labs rename)
- Anchor: 0.30+ (new IDL format, account-resolution)
- Tokens: Token-2022 first-class
- RPC: Helius/Triton enhanced endpoints preferred; vanilla RPC fallback always works