Indexing Blockchain Events with Rust and Alloy
blog.bilinearlabs.io·24w·
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...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help