Skip to main content

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.

Command overview

CommandDescription
opendev tx <signature>Full analysis of a confirmed transaction
opendev simulate <input>Simulate an unsigned transaction (base64 blob, file path, or source file)
opendev batch <file>Run analysis over a list of signatures from a JSON file
opendev infoShow registered programs, decoder status, and coverage
opendev login [provider]Browser-assisted setup for AI insights (default: groq)
opendev config set-key <provider> <key>Save an AI provider API key from a script
opendev config get-key [provider]List configured keys (values masked) and their source
opendev config remove-key <provider>Delete a key from the credential store
opendev config set-rpc <url>Set the default Solana RPC URL
Run opendev <command> --help for the full flag list for each command.

tx — Analyze a transaction

Fetch and analyze a confirmed Solana transaction on the blockchain.
opendev tx <signature> [options]

Examples

# Mainnet (default)
opendev tx 4W8cbHAkjJC3jKdFY39JFXtTakf5JK9rz6jyGPbbpKEqhweRYzwjveZasFin46WuApDeLoQRHieG3t5b3T7VXMRR

# Devnet with JSON output
opendev tx <signature> --network devnet --json

# Custom RPC
opendev tx <signature> --rpc https://your-rpc.example.com --json

simulate — Test unsigned transactions

Run a transaction simulation without on-chain confirmation.
opendev simulate <input> [options]

Input types

InputTreated asExample
base64 stringbase64AEqF0U1X...
.b64 / .json filepath./tx.b64 or ./tx.json
.ts / .mts / .cts filets-source./build_tx.ts
.js / .mjs / .cjs filejs-source./build_tx.js
.rs filerust-source./build_tx.rs
Directory with Cargo.tomlrust-source./my-rust-proj

Examples

# Base64 blob
opendev simulate AEqF0U1X... --network devnet

# From file
opendev simulate ./sample-tx.b64

# From TypeScript source
opendev simulate ./build_tx.ts --network devnet

# From Rust project
opendev simulate ./build-tx
Shows a yellow EXECUTING USER CODE banner before running source files. Use --no-exec if you want to refuse source-file input (useful in CI).

batch — Process multiple transactions

Analyze a list of signatures from a JSON file.
opendev batch <file> [options]

Input format

{
  "network": "mainnet",
  "signatures": [
    "4W8cbHAkjJC3jKdFY39JFXtTakf5JK9rz6jyGPbbpKEqhweRYzwjveZasFin46WuApDeLoQRHieG3t5b3T7VXMRR",
    "..."
  ]
}

Examples

# CSV output
opendev batch ./signatures.json --csv --output batch-report.csv

# JSON output (one object per line)
opendev batch ./signatures.json --json > results.jsonl

info — Program coverage

Display supported programs and decoder status.
opendev info
Shows:
  • List of registered programs
  • Decoder availability for each
  • Overall coverage statistics

login — Set up AI insights

Interactive setup for AI-powered optimization suggestions.
opendev login [provider]

Providers

ProviderSetup
groq (default)console.groq.com/keys — no credit card required
anthropicconsole.anthropic.com — $5 minimum top-up

Flow

  1. Opens provider’s key page in your browser
  2. Prompts you to paste the key (input is masked)
  3. Validates against the provider’s API
  4. Saves to ~/.opendev/credentials.json (chmod 600)

Examples

opendev login              # defaults to groq
opendev login anthropic    # use Anthropic instead

config — Manage configuration

Store API keys, RPC URLs, and other settings.
opendev config <subcommand> [arguments]

Subcommands

set-key

Save an API key for an AI provider:
opendev config set-key groq gsk_...
opendev config set-key anthropic sk-ant-...

get-key

List all configured keys (values are masked):
opendev config get-key [provider]

remove-key

Delete a key from storage:
opendev config remove-key groq

set-rpc

Set the default Solana RPC URL:
opendev config set-rpc https://your-rpc.example.com

Help

Get help for any command:
opendev --help          # top-level help
opendev tx --help       # tx command help
opendev batch --help    # batch command help