Event topic layout
Non-anonymous logs store the event signature hash in topic0.
Their indexed parameters begin at topic1. Anonymous events omit the signature hash, so their first indexed parameter begins at the first topic.
Non-indexed parameters are ABI-encoded in the data field. Indexed string, bytes, array, and tuple values are represented by their BYTES32 topic hash and cannot be recovered from the log alone.
- Use this helper when a function expects event_abi JSON but you prefer Solidity event syntax.
- The Transfer example follows the captured USDC log at Ethereum block 20,000,000, transaction 0x5cbf...3dde, log index 97.
- Parameter names are preserved when present. Downstream decoders assign documented fallback names to unnamed parameters.