Lesson 0 — Welcome to Inside Alloy
Question
This course is one of three Intermediate courses (Revm, Reth, Alloy). Alloy is the type foundation that Reth + dapps + indexers / MEV bots all depend on. Where to start, what to assume.
Principle (minimum model)
- 3 Intermediate courses. Revm (execution engine) / Reth (Staged Sync + ExEx + SDK) / Alloy (Provider + Network + Signer). Take in any order; Alloy is the lowest-level (recommended start).
- 3 topic chains. Provider trait + macro stack / Network associated types + Optimism multi-chain / Signer + SigningProvider + WalletFiller. Each = buildup → walkthrough → quiz → drill.
- Reading approach. Open
alloy-rs/corein another tab; verify every claim against the source. - Prerequisites. Rust intermediate (generics + trait bounds + ?Sized + dyn Trait vs impl Trait + Arc + macros). Light Ethereum primitives.
- Setup.
git clone https://github.com/alloy-rs/core+cargo install cargo-expand+ second monitor for source viewing.
Worked example + steps
Welcome to Inside Alloy — how this course works
This is one of three independent Intermediate-tier source-reading courses:
- Revm — inside the EVM engine
- Reth — Staged Sync, ExEx, the Reth SDK
- Alloy (you are here) — Provider, Network, Signer
Alloy is the foundation everyone else builds on — Reth uses alloy types, Revm uses alloy primitives, and every dapp / MEV bot / indexer that talks to Ethereum from Rust uses the alloy Provider. This course teaches you to read the alloy source, the same way the Revm source-reading course teaches you to read revm.
📋 First time at the Intermediate tier? Read the lesson on how the source-reading courses work, at the end of the bridge course, before starting. It explains the editorial style (Predict prompts, Quiz gates, the build-up → walkthrough → quiz → drill chain shape) and pacing — applies to all three Intermediate courses, so you only read it once.
What this course teaches
You'll read the alloy-rs/alloy source line by line:
- The
Providertrait — the central abstraction for talking to Ethereum nodes - The
Networktrait — how alloy supports Ethereum, Optimism, Anvil, custom L2s with the same API surface - The
Signer/Fillertraits — how transaction signing, gas estimation, and nonce management compose into layered providers
Three topic chains, each with build-up + walkthrough + quiz + drill.
By the end, you'll be able to read alloy's hot path and build custom Provider layers — the same kind of code MEV pipelines, indexers, and Reth-SDK App-chains ship to production.
Prerequisites
Intermediate Rust (covered in the bridge course):
- Generics with trait bounds, associated types, default type parameters
Arc<T>,dyn Trait, layered ownershipasync/Futurebasics, the Tokio runtime modelauto_implmacros and procedural attributes
No EVM internals required. Alloy operates above the EVM — it talks to nodes, not to opcodes. (If you're doing all three Intermediate courses, you'll see EVM internals in the Revm course.)
Familiarity with using alloy as a user — Provider::get_balance, ProviderBuilder, signing a tx — covered in the fundamentals course (alloy-primitives-signing, alloy-provider). If those concepts are shaky, do those lessons first; this course teaches you to read alloy, not to use it.
Setup — do this once
Before lesson 1, have these ready in another window:
alloy-rs/alloycloned —git clone https://github.com/alloy-rs/alloy- A working
cargotoolchain —rustc --versionshould print something modern - A second monitor or split terminal — you'll be cross-referencing source while you read
The "Find in repo" prompts only work if you actually have the repo open. Close that loop before starting.
You're ready
Scroll back to the course detail and start with the lesson that builds the Provider trait.
After this course: if you've done the other two, you've completed all three Intermediate courses. Expert picks up the procedural-macro and zkVM-integration deep dives.
Summary (3 lines)
- This course = one of three Intermediate courses; Alloy is the type foundation. Start here if you want the lowest layer.
- 3 topic chains (Provider / Network / Signer) + buildup → walkthrough → quiz → drill. Verify against alloy-rs/core source.
- Prerequisites: intermediate Rust + light Ethereum. Setup: clone alloy-rs/core + cargo-expand + second monitor.