Every npx shadowfork command and its flags.
CLI
All commands take --json for machine output and --network mainnet|testnet.
| Command | What it does |
|---|---|
shadowfork rpc [--port 8545] [--host 127.0.0.1] |
Starts the JSON-RPC endpoint |
shadowfork simulate --from A --to B --data 0x.. [--value wei] [--gas n] [--balance wei] [--block n] |
Traces an unsigned call |
shadowfork replay <hash> [--independent] |
Re-executes a mined transaction and checks it against the node |
shadowfork regress <address> <artifact.json or 0xRuntime> [--limit 50] [--fail] [--out report.json] |
Upgrade regression |
shadowfork preview --from A --to B --data 0x.. [--value wei] [--balance wei] |
Wallet preview; exits 1 on a danger warning |
shadowfork sandwich --from A --to router --data 0x.. --value wei |
Sandwich exposure of a swap |
shadowfork layout <address or old.json> <new.json> |
Storage layout check; exits 1 when incompatible |
shadowfork fuzz <token> [candidate.json] [--sequences 8] [--steps 12] [--seed n] |
ERC-20 invariant fuzzing; exits 1 on a violation |
shadowfork gas-audit [--blocks 1500] [--max 120] |
Measures QIE's fee floor on recent transactions |
shadowfork verify [--count 30] [--seeded] |
Diffs the engine against the node |
shadowfork preflight <artifact.json...> |
Opcode check and deploy dry-run |
shadowfork probe |
Lists what the QIE node serves |
shadowfork tx <hash> |
Explains a mined transaction from the node's trace |
shadowfork scan <address> [--fail-on high] |
Risk scan of a deployed contract |
shadowfork oracles |
QIE Oracle feed freshness |
| `shadowfork policy hash | validate <file.yml>` |
Environment
| Variable | Effect |
|---|---|
QIE_RPC_URL, QIE_RPC_FALLBACKS |
Upstream RPCs |
SHADOWFORK_MODE |
live, auto (default), record or fixture |
SHADOWFORK_EVM_RULES=shanghai |
Use standard Shanghai rules, for comparison |
SHADOWFORK_ORACLE_MAX_AGE |
Seconds before an oracle read is stale (default 10800) |
SHADOWFORK_EXPLORER_LOOKUP=0, SHADOWFORK_SIGNATURE_LOOKUP=0 |
Turn off verified-ABI and signature lookups |