anvil_zksync
Start or check a local anvil-zksync node to simulate zkSync environment for development and testing, including forking from mainnet or testnet.
Instructions
Start or check a local anvil-zksync development node. Supports forking from mainnet/testnet. Default port: 8011.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Port to listen on (default: 8011) | |
| forkUrl | No | RPC URL to fork from, e.g. https://mainnet.era.zksync.io | |
| forkBlockNumber | No | Block number to fork from (requires forkUrl) | |
| accounts | No | Number of funded accounts to generate (default: 10) | |
| balance | No | ETH balance for each generated account in ether (default: 10000) | |
| action | Yes | 'start' launches anvil-zksync in the background and returns when ready. 'check' tests if anvil-zksync is reachable at the given port. |