Skip to main content

Module call_decoder

Module call_decoder 

Source
Expand description

EVM function-call and constructor calldata decoder.

Decodes transaction input data using an ABI JSON definition.

§How it works

  • First 4 bytes of calldata = keccak256(function_signature)[:4] (the selector)
  • Remaining bytes = ABI-encoded inputs tuple
  • Constructor: no selector prefix; all bytes = ABI-encoded constructor args

Structs§

EvmCallDecoder
EVM function-call decoder.