CLI tool to produce Foundry-style traces for EVM transactions and calls through debug_traceTransaction and debug_traceCall RPC requests.
From crates.io:
cargo install torgeFrom source:
cargo install --path .torge tx <TX_HASH> [OPTIONS]Basic usage:
torge tx 0x1234...abcd --rpc-url http://localhost:8545With Foundry alias:
torge tx 0x1234...abcd --rpc-url ethereumWith selector resolution:
torge tx 0x1234...abcd --rpc-url http://localhost:8545 --resolve-selectorsWith argument decoding, calldata, and events:
torge tx 0x1234...abcd --resolve-selectors --include-args --include-calldata --include-logstorge call <TO> <DATA> [OPTIONS]
torge call --create <DATA> [OPTIONS]Simulate a call against a contract:
torge call 0xdead...beef 0xa9059cbb... --rpc-url http://localhost:8545With sender, value, and gas limit:
torge call 0xdead...beef 0xa9059cbb... --from 0xcafe...1234 --value 1ether --gas-limit 1000000At a specific block:
torge call 0xdead...beef 0xa9059cbb... --block 18000000Simulate a contract creation:
torge call --create 0x6080604052... --rpc-url http://localhost:8545torge clean [OPTIONS]Clear the entire selector cache:
torge cleanRemove only unresolved selectors (retry on next lookup):
torge clean --only-unknown