Trace unsigned transactions and re-execute mined ones, with asset changes, gas advice and oracle reads.
Simulate and replay
Simulate
npx shadowfork simulate --from 0x…beef --to 0x0087904d95bee9e5f24dc8852804b547981a9139 \
--data 0xd0e30db0 --value 5000000000000000000 --balance 1000000000000000000000
The web app's simulator runs the same call. The reply holds:
| Part | What it is |
|---|---|
| Call tree | Every frame with its type, target, decoded function (from the local ABI table, the QIE explorer's verified ABI or the public signature database), value, gas and logs |
| Asset changes | Native value moved by successful frames, ERC-20 Transfer logs, and WQIE-style Deposit and Withdrawal |
| State diff | Each slot and balance before and after, from the engine's own pre-state record |
| Gas profile | Gas per contract and function selector, from opcode-level steps |
| Gas advice | What QIE will bill and the cheapest safe gas limit (see below) |
| Oracle reads | Every latestRoundData() read during execution, with the price's age at that block |
Gas advice
QIE bills max(gasUsed, gasLimit / 2). A limit anywhere between the gas used and twice the gas used is billed exactly the gas used, so Shadowfork suggests the gas used plus 25 percent. A swap that uses 102,937 gas is billed 250,000 at a 500,000 limit, and 102,937 at the suggested 128,672.
Oracle reads
A price feed read inside a transaction is listed with its age when the transaction ran. A read older than three hours (SHADOWFORK_ORACLE_MAX_AGE, in seconds) is marked stale. This shows when a contract accepts a price without checking updatedAt.
Replay
npx shadowfork replay 0xee6ee0b21282d54ded2103a8878d5b6f49bb2ca27a51018b9973471154196ce0
Replay re-executes a mined transaction from its exact pre-state and ends with its agreement with the node: every call frame compared with debug_traceTransaction. By default the pre-state is seeded from the node's prestateTracer, corrected for QIE's sender quirk; --independent reads archive state and replays the earlier transactions of the block instead.