svmscope: decode, replay, mutate a Solana transaction logosvmscope: decode, replay, mutate a Solana transaction
Start from a signature. cargo add --dev svmscope 0.4. Hosted at svmscope.vercel.app. LiteSVM and Surfpool pieces stay.
devrels.xyz/a/310svmscope 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.
cargo add --dev svmscopeuse 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
A fast, lightweight library for testing Solana programs in Rust. Wraps the Sealevel VM directly — no validator, no async runtime, no RPC layer.
Beyond 'what is LiteSVM' — the actual testing workflow. Rust integration tests, the TypeScript bindings, setting arbitrary account state, warping the clock, and wiring it into CI for sub-second test runs.
Spool Labs' Tapedrive keeps the bookkeeping on Solana and the bytes on a network of staked storage nodes. You prepay for a tape (capacity times epochs), write with the tape CLI, Rust SDK, Git or any S3 client, and read over plain HTTP. Early devnet access is live; mainnet is not dated yet.
Get new articles in your inbox
Technical deep-dives on Solana tooling, infrastructure, and ecosystem. No noise.
