Skip to content

alloy

The alloy crate group extends Alloy, the standard Rust toolkit for Ethereum types and RPC, with Base-specific consensus types, RPC types, EVM behavior, and hardfork definitions.

CratePackage NamePurpose
consensusbase-alloy-consensusBase-specific consensus types
evmbase-alloy-evmEVM customizations for Base
hardforksbase-alloy-hardforksBase hardfork definitions
networkbase-alloy-networkNetwork type definitions
providerbase-alloy-providerAlloy provider extensions
rpc-jsonrpseebase-alloy-rpc-jsonrpseeJSON-RPC server traits (jsonrpsee)
rpc-types-enginebase-alloy-rpc-types-engineEngine API RPC types
rpc-typesbase-alloy-rpc-typesGeneral RPC type extensions

The alloy crates sit at the foundation of the dependency graph. They define the types that flow through every other layer — from how blocks and transactions are represented in consensus, to the RPC types returned to users, to the EVM execution context.

These crates extend the upstream Alloy types with Base-specific fields and behaviors needed for the OP Stack L2 environment.

crates/alloy/