Ethereum library

Viem

Viem is the low-level TypeScript library we use to talk to Ethereum — fast, fully typed, and predictable where it matters.

Viem
What it is

Viem is a TypeScript library for interacting with Ethereum: building transactions, reading contract state, decoding logs, and managing accounts. It is the engine beneath Wagmi and our backend chain services.

Why we use it

On-chain code is unforgiving, so we want a library with precise types and clear errors. Viem’s typing catches contract mismatches at compile time and keeps both our frontend and backend chain work consistent.

Where we put it to work

In the product,
not the slide.

01

Typed contract calls

ABI-typed reads and writes that fail at compile time, not on-chain.

02

Backend chain services

Indexers and signers that watch events and submit transactions reliably.

03

Transaction building

Gas estimation and simulation so transactions behave as expected before sending.

START A PROJECT

Built with
Viem.

Start a project →