Skip to main content

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

  • AbiDecodingError when topics are missing or data is malformed
  • AbiInvalidSelectorError when topic0 does not match the event

See Also