Indexing Blockchain Events with Rust and Alloy
blog.bilinearlabs.io·20w·
Discuss: Hacker News
🌊Event Streaming
Preview
Report Post

25 Jul 2025 — 9 min read

Our approach to indexing EVM events Ethereum Virtual Machine (EVM)-compatible blockchains have a neat way for off-chain services to learn about on-chain activity: events.

Hereunder, we explain what they are and how to index them using Rust, with alloy handling the heavy lifting of interacting with the node, and tokio facilitating parallelization.

Introduction to Events

In Solidity, you can declare an event like this:

event Transfer(address indexed from, address indexed to, uint256 value);

and emit it with:

emit Transfer(msg.sender, to, amount);

You can emit events for anything you can imagine, like token transfers, price updates, permissions upgr…

Similar Posts

Loading similar posts...