Call Tracer
Capture the nested CALL/CREATE tree with gas usage, return data, and log events.
Last updated
{
"from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266",
"gas": "0x97a960",
"gasUsed": "0x1130f",
"to": "0x4200000000000000000000000000000000000006",
"input": "0x06fdde03",
"output": "0x00000000000000000000000000000000000000000000000000...5772617070656420457468657200...",
"calls": [
{
"from": "0x4200000000000000000000000000000000000006",
"gas": "0x949600",
"gasUsed": "0x15c4",
"to": "0x4200000000000000000000000000000000000015",
"input": "0xd8444715",
"output": "0x00000000000000000000000000000000000000000000000000...4574686572...",
"calls": [
{
"from": "0x4200000000000000000000000000000000000015",
"gas": "0x918a50",
"gasUsed": "0x247",
"to": "0xc0d3c0d3c0d3c0d3c0d3c0d3c0d3c0d3c0d30015",
"input": "0xd8444715",
"output": "0x00000000000000000000000000000000000000000000000000...4574686572...",
"value": "0x0",
"type": "DELEGATECALL"
}
],
"type": "STATICCALL"
}
],
"value": "0x0",
"type": "CALL"
}{
"from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266",
"gas": "0x97a960",
"gasUsed": "0x171a8",
"to": "0x4200000000000000000000000000000000000006",
"input": "0xd0e30db0",
"logs": [
{
"address": "0x4200000000000000000000000000000000000006",
"topics": [
"0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c",
"0x000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb92266"
],
"data": "0x00000000000000000000000000000000000000000000000000038d7ea4c68000",
"position": "0x0"
}
],
"value": "0x38d7ea4c68000",
"type": "CALL"
}# Trace a WETH.balanceOf call against live mainnet state
mega-evme tx \
--fork --rpc https://mainnet.megaeth.com/rpc \
--sender.balance 1ether \
--receiver 0x4200000000000000000000000000000000000006 \
--input 0x70a08231000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb92266 \
--trace --tracer callmega-evme tx \
--receiver 0x4200000000000000000000000000000000000006 \
--input 0x06fdde03 \
--trace --tracer call \
--trace.call.only-top-call# WETH.deposit() emits a Transfer event — use --with-log to capture it
mega-evme tx \
--fork --rpc https://mainnet.megaeth.com/rpc \
--sender.balance 1ether \
--receiver 0x4200000000000000000000000000000000000006 \
--input 0xd0e30db0 \
--value 1000000000000000 \
--trace --tracer call \
--trace.call.with-log