1

i got one tx hash: 0x7d2296bcb936aa5e2397ddf8ccba59f54a178c3901666b49291d880369dbcf31 How is the following transaction trace generated? enter image description here

1 Answer 1

0

Geth clients have the debug_traceTransaction that allows stepping through the bytecode executed during a transaction.

Using the opcodes you can determine when a contract was invoked, CALL, CALLSTATIC, DELEGATECALL, etc. From examining the opcode parameters you get the contract addresses and calldata.

With that info you can reconstruct the contract call trace for verified contracts, and from the calldata the function identifier.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.