← Articles
svmscope: decode, replay, mutate a Solana transaction logo
solana

svmscope: decode, replay, mutate a Solana transaction

· SEP 8, 2026 ·
Read
Share

Start from a signature. cargo add --dev svmscope 0.4. Hosted at svmscope.vercel.app. LiteSVM and Surfpool pieces stay.

devrels.xyz/a/310

svmscope is a Solana transaction autopsy. Paste a signature. It reconstructs every account and program ELF that transaction touched, re-executes the real programs in an embedded SVM, then lets you rewrite state and ask what if.

The hosted UI is Analyze, Simulate, Debugger, and Profile. Networks: Mainnet, Devnet, Testnet, Localnet, or a custom RPC. Same engine is the Rust crate svmscope. It runs on LiteSVM. The LiteSVM and Surfpool pieces stay: LiteSVM.

Crate

Testing tool. Add it as a dev-dependency. Reconstruct once. Replay and mutate locally after that. No validator wait.

bash
cargo add --dev svmscope
rust
use svmscope::{Check, Mutation, Scope};

let scope = Scope::new("https://api.mainnet-beta.solana.com");
let mut replay = scope.replay("<signature>")?;
assert!(replay.run()?.result.success);

let out = replay.verify(
    "draining the vault makes the claim revert",
    &[Mutation::lamports("<vault-address>", 0)],
    &[Check::revert_contains("InsufficientFunds")],
)?;
assert!(out.pass);

Time is the Clock sysvar. Warp it. A vesting claim that reverts today can succeed at +30 days. Freeze the world into one JSON fixture (accounts, ELFs, IDLs, recorded outcome) and replay it offline.

Hosted UI

Decode the CPI tree with lookup tables resolved and accounts named from on-chain IDLs. Pre-flight a transaction before send. Step the debugger. Profile compute as a flamegraph (/flame/<signature>). Feature gates can be flipped for replay. Export a scenario suite and run it with svmscope test suite.json.

HTTP server

Optional. Workspace crate svmscope-server, not on crates.io. Reads HOST, PORT, SVMSCOPE_RPC_URL. Local default http://127.0.0.1:3000. GET /api lists the surface. Point it at your own RPC. Public mainnet RPC is rate-limited.

Resources

Keep reading

Get new articles in your inbox

Technical deep-dives on Solana tooling, infrastructure, and ecosystem. No noise.