Overview
Event.decodeLog decodes a single log entry using a specific event definition. It validates topic0 for non-anonymous events and combines indexed topics with non-indexed data.
Quick Start
Dynamic Indexed Parameters
When an indexed parameter is dynamic (string, bytes, dynamic arrays), the topic contains keccak256(value). The original value cannot be reconstructed from the topic alone.
Error Handling
AbiDecodingErrorwhen topics are missing or data is malformedAbiInvalidSelectorErrorwhentopic0does not match the event
See Also
- parseLogs - Decode many logs with a full ABI
- encodeTopics - Build topics for filters

