Posts tagged #eth_getlogs

2 posts.

August 7, 2026 · 5 min read

Decoding Event Logs: Topics, Signatures, and Indexed Parameters

You can fetch logs with eth_getLogs and eth_subscribe — but the raw log is address + topics + data, not a readable event. This tutorial explains how logs are encoded (topic0 = the event signature hash, indexed params in topics, the rest in data), how to decode them in viem/ethers/web3.py, and the traps: indexed dynamic types, address padding, and anonymous events.

Read →