Run the Shadowfork endpoint and trace your first unsigned transaction on QIE mainnet.

Quickstart

Shadowfork is a local EVM that runs on QIE mainnet state. It answers the JSON-RPC methods QIE's public nodes refuse (debug_traceCall, eth_simulateV1, eth_call with state overrides) and forwards every other call to QIE.

Install

cd shadowfork            # a clone of this repository
npm install

Node 22.13 or newer. No API key: Shadowfork reads QIE's public archive RPCs and fails over across rpc1 to rpc5.

Start the endpoint

npx shadowfork rpc --port 8545

Or run the web app, which serves the same endpoint at /rpc together with the simulator, regression and replay pages:

npx vite build --config web/vite.config.ts
npm start            # http://localhost:8787, endpoint at http://localhost:8787/rpc

Trace a call that was never sent

curl -s localhost:8545 -H 'content-type: application/json' -d '{
  "jsonrpc":"2.0","id":1,"method":"debug_traceCall",
  "params":[{"from":"0x000000000000000000000000000000000000beef",
             "to":"0x0087904d95bee9e5f24dc8852804b547981a9139",
             "value":"0x4563918244f40000","data":"0xd0e30db0"},
            "latest",
            {"tracer":"callTracer","tracerConfig":{"withLog":true},
             "stateOverrides":{"0x000000000000000000000000000000000000beef":{"balance":"0x56bc75e2d63100000"}}}]}'

That wraps 5 QIE into WQIE from an address with an overridden balance and returns the call tree with its Deposit log. The same request against rpc1mainnet.qie.digital returns -32601 the method debug_traceCall does not exist.

Point your tools at it

Tool Change
viem createPublicClient({ transport: http("http://localhost:8545") })
ethers new JsonRpcProvider("http://localhost:8545")
Hardhat a network with url: "http://localhost:8545", chain id 1990, or the Hardhat plugin
Foundry --rpc-url http://localhost:8545
MetaMask a custom network, chain id 1990, RPC http://localhost:8545

Next