alloy
Installation
SKILL.md
Alloy — Rust Ethereum & EVM Development Library
Alloy is the next-generation Rust library for interacting with Ethereum and all EVM-compatible blockchains. It is maintained by the Reth team at Paradigm and is the successor to ethers-rs. Alloy provides a modular, type-safe, and performant toolkit for every layer of blockchain interaction: providers, signers, contracts, transactions, and network primitives.
Crate Architecture
| Crate | Purpose |
|---|---|
alloy |
Meta-crate that re-exports everything — start here for simple projects |
alloy-provider |
RPC providers (HTTP, WS, IPC) with layered middleware |
alloy-signer-* |
Wallet/signer implementations (local, Ledger, Trezor, AWS, GCP, YubiKey) |
alloy-network |
Network abstractions (Ethereum, custom chains) |
alloy-primitives |
Core types: Address, U256, Bytes, FixedBytes, B256 |
alloy-sol-types |
Solidity type system: ABI encode/decode, the sol! macro |
alloy-contract |
High-level contract interaction: deploy, call, events |
alloy-transport |
Transport layer: HTTP, WS, IPC connections |
alloy-consensus |
Transaction types and consensus logic |
alloy-json-rpc |
JSON-RPC type definitions |
alloy-node-bindings |
Local node management: Anvil, Geth, Reth |