The methods Shadowfork answers in its own EVM, and how the rest is forwarded to QIE.

JSON-RPC methods

Every request goes to one endpoint: POST / on npx shadowfork rpc, or POST /rpc on npm start. Batches are accepted.

Answered locally

Method Notes
debug_traceCall(call, block, config) tracer: callTracer (with withLog) or prestateTracer (with diffMode). config.stateOverrides sets balance, nonce, code, state or stateDiff per address. tracerConfig may be an object or a JSON string
eth_simulateV1(payload, block) blockStateCalls[], each with stateOverrides, blockOverrides (number, time) and calls[]. Calls run in order on one fork; each returns status, return data, gas used and logs
eth_call(call, block, overrides) Run locally only when the third parameter is present; otherwise forwarded
debug_traceTransaction(hash, config) Forwarded to the node, except withLog or diffMode, which the node ignores: those are re-executed locally
shadowfork_simulate(call, block, opts) Trace, asset changes, true state diff, opcode gas profile, oracle reads and QIE gas advice in one reply
shadowfork_replay(hash) Re-execute a mined transaction locally, with the same report
shadowfork_regress(address, runtime, { limit }) Upgrade regression; see Upgrade regression
shadowfork_preflight({ bytecode, deployedBytecode, abi }) Opcode check against QIE's rules plus a deploy dry-run
shadowfork_preview(tx, block, opts) What a wallet should show before signing; see Preview
shadowfork_explain(tx, block, opts) Why a call fails, and the fix
shadowfork_sandwich(tx, block) Sandwich exposure of a router swap
shadowfork_layout(addressOrArtifact, artifact) Storage layout compatibility
shadowfork_fuzz(token, opts) ERC-20 invariant fuzzing on a fork
shadowfork_capabilities() Local methods, rules, fee model and request counts

Forwarded

Everything else goes to QIE mainnet unchanged, with failover across rpc1 to rpc5 on transport errors. A JSON-RPC error from QIE is returned as is.

Block tags

latest, pending, safe and finalized resolve to the current head (QIE blocks are final when produced). A number or a block hash pins the state.

Gas and fees in simulation

An unsigned call with no gas price runs with a base fee of 0, as eth_call does on geth. The default gas limit is the block's gas limit, capped at 40,000,000. The top frame's gasUsed follows QIE's own tracer: execution gas, without intrinsic gas and before refunds.