Introduction
Welcome to the anvil-zkSync documentation—your single stop for spinning up a local ZK chain node, forking mainnet or testnets, and debugging smart-contract workflows.
At a glance:
• Fast in-memory node for Elastic Network ZK chains • Drop-in anvil CLI parity (forking, snapshots, impersonation, …)
• Rich RPC surface for integration tests and L1↔L2 scenarios
Documentation map
Getting started in 30 seconds
# 1. Install via Cargo (recommended)
brew tap matter-labs/anvil-zksync https://github.com/matter-labs/anvil-zksync.git
brew install anvil-zksync
# 2. Launch a fresh local node
anvil-zksync run
# 3. Or fork Era mainnet at the latest block
anvil-zksync fork --fork-url mainnet
Once running, visit http://localhost:8011
.
Where to next?
- New to zkSync? Start with Getting Started for a quick architectural primer.
- Deep dive into flags? Head over to the CLI Reference.
- Building an L1↔L2 bridge? Check the Guides section.
- Looking for Rust book? Head over to the Anzil-ZKsync Rust book.
Thank you for using anvil-zkSync —happy building!
If you spot an issue or have an idea for improvement, open an issue or pull request on GitHub.