You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**Accounts and Balances**: Set the number of accounts (`--accounts`) and their Ether balance (`--balance`).
95
-
-**Genesis Initialization**: Start with a custom genesis file (`--init <genesis.json>`), defining parameters like `chainId`, `gasLimit`, and preallocated accounts.
96
-
-**EVM Hardforks**: Simulate specific Ethereum hardforks (e.g., `shanghai`, `paris`) using `--hardfork`.
97
-
-**Transport Layers**: Supports HTTP and WebSocket connections on port 8545 (customizable via `--port`).
98
-
-**Chain State**: Save/load states with `--state`, `--dump-state`, or `--load-state` for persistence.
99
-
100
-
#### Forking
101
-
102
-
Anvil can fork live Ethereum or EVM-compatible networks:
103
-
104
-
-**State Replication**: Use `--fork-url` to replicate a network’s state at a specific block (`--fork-block-number`) or transaction (`--fork-transaction-hash`).
105
-
-**Offline Testing**: Combine `--fork-chain-id` with cached state for offline scenarios.
106
-
-**Caching and Rate Limits**: Disable caching with `--no-storage-caching` or manage RPC requests using `--compute-units-per-second` or `--no-rate-limit`.
107
-
108
-
#### State Management
109
-
110
-
Flexible state management options include:
111
-
112
-
-**Snapshots**: Save and reload chain states with `--state`, `--dump-state`, and `--load-state`.
113
-
-`--state` is an alias for both `--load-state` and `--dump-state`, it initializes the chain with the state and block environment stored at the file, if it exists, and dumps the chain's state on exit.
114
-
-**Historical States**: Preserve or prune states with `--preserve-historical-states` or `--prune-history`. Set the number of persisted states using `--max-persisted-states`.
115
-
-**Intervals**: Control state dump intervals with `--state-interval`.
116
-
117
-
#### RPC Methods
118
-
119
-
Supports standard Ethereum RPC methods (`eth_getBlockByNumber`, `eth_sendTransaction`, etc.), Anvil-specific methods (`anvil_impersonateAccount`, `anvil_setBalance`, etc.), and tracing/debugging (`debug_traceTransaction`, `evm_snapshot`, etc.).
120
-
121
-
#### Default CREATE2 Deployer
122
-
123
-
Includes a CREATE2 deployer proxy (`0x4e59b44847b379578588920ca78fbf26c0b4956c`), allowing CREATE2 testing without forking.
124
-
125
-
#### Genesis Configuration
126
-
127
-
Customize network initialization using a `genesis.json` file to set `chainId`, `gasLimit`, preallocated accounts, and other parameters.
128
-
129
87
<br>
130
88
131
89
> 📚 **Reference**
132
90
>
133
-
> See the [`anvil` Reference](../reference/anvil/README.md) for in depth information on Anvil and its capabilities.
91
+
> See the [`anvil` Reference](../reference/anvil/) for in depth information on Anvil and its capabilities.
0 commit comments