Cookbook
Runnable recipes for debugging, gas analysis, state diffing, and more.
Debug a Failing Transaction
mega-evme replay 0xabc123... \
--rpc https://mainnet.megaeth.com/rpc \
--trace --tracer opcode \
--trace.opcode.enable-return-data \
--trace.output trace.jsonCompare Gas Usage Across Specs
# Under Rex3 — call WETH.balanceOf
mega-evme tx \
--fork --fork.rpc https://mainnet.megaeth.com/rpc \
--sender.balance 1ether \
--receiver 0x4200000000000000000000000000000000000006 \
--input 0x70a08231000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb92266 \
--spec Rex3
# Under Rex4
mega-evme tx \
--fork --fork.rpc https://mainnet.megaeth.com/rpc \
--sender.balance 1ether \
--receiver 0x4200000000000000000000000000000000000006 \
--input 0x70a08231000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb92266 \
--spec Rex4Deploy and Interact in Two Steps
Test SALT Bucket Impact on Storage Gas
Fork and Patch Storage for Access Control Testing
Replay With Modified Calldata
Fund Multiple Accounts for Multi-Party Testing
Capture a State Diff
Investigate Gas Detention Behavior
Last updated