Documentation Index
Fetch the complete documentation index at: https://open-dbe26606.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
High-level overview
opendev takes a Solana transaction signature and produces a decoded execution profile:Data flow
1. Fetch
Input: Transaction signatureOutput: On-chain transaction data + metadata
- Supports mainnet, devnet, custom RPC
- Optional IDL cache (speedup for repeat analysis)
2. Parse & decode
Input: Raw transaction bytesOutput: Decoded instructions, account state
3. CPI call tree
Input: Decoded instructionsOutput: Hierarchical call tree
invoke_signed / invoke during simulation.
4. Compute & gas analysis
Input: CPI tree + instruction costsOutput: Per-instruction and aggregate compute units
Account state tracking
Before/after state for every account touched:Decoder registry
Programs are matched to decoders by pubkey:Custom decoders
Programs like Token, Swap, and Stake have hand-written decoders for rich output.IDL decoders
Generic IDL-based decoder for any program with an onchain IDL.Rule-based insights
Deterministic analysis of the transaction (no AI required):- Anomaly detection — unusual account access patterns, spam-like behavior
- MEV detection — front-running signatures, sandwich attack indicators
- Nondeterministic failures — execution paths that might fail under different slot conditions
- Compute warnings — approaching limit or inefficient patterns
AI insights (optional)
Integration with Groq / Anthropic for optimization suggestions. Flow:Simulation
opendev simulate re-executes a transaction offline:
sigVerify: false— skip signature validationreplaceRecentBlockhash: true— use fake blockhash- Current mainnet state (by default)
CLI architecture
Performance characteristics
- Mainnet tx: ~1–3s (network + decode + analysis)
- Simulation: ~100–500ms (depends on source file execution time)
- Batch: Linear in number of transactions (parallelizable)
- IDL cache: Cuts repeat analysis by ~40%
Dependency design
Production (installed globally):@solana/web3.js— RPC client, transaction parsing@solana/spl-token— token program utilities- Small, vetted set for security
- Testing frameworks, type definitions, build tools
- Never shipped in the published bundle