Skip to content
Logo

Choose a path

Start with the row that matches what you are building. Each path points to an explanation first and then to runnable code where one exists.

GoalRead firstRunnable examples
Connect to a node and make RPC callsGetting started, then RPC providersProviders
Read or write a smart contractContract interactions, then reading or writingContracts
Build, sign, and send a transactionTransaction lifecycle, then transaction builderTransactions
Subscribe to blocks, logs, or pending transactionsWebSocket providerSubscriptions
Choose a signer or walletSigners vs. Ethereum walletWallets and signers
Work with more than one chain or custom network typesInteracting with multiple networksAny network
Add retries, rate limits, fallbacks, or observabilityTransport layersLayers
Test with mocks, Anvil, Geth, Reth, or a forkTesting Alloy applicationsMock provider and node bindings
Decode ABI data, logs, or transaction inputUsing sol!sol! examples and transaction decoding
Select a smaller dependency setFeature flagsAlloy features on docs.rs
Migrate from ethers-rsMigration referenceConversions

When a guide does not cover the API

Use the documentation layers in this order:

  1. This site for concepts and supported workflows.
  2. The examples repository for complete programs.
  3. docs.rs for exact types, traits, methods, and feature gates.
  4. The Alloy source when behavior or version history matters.

The agent guide gives the same retrieval order in a compact form for coding agents.