@@ -15,81 +15,81 @@ Commands:
15
15
help Print this message or the help of the given subcommand(s)
16
16
17
17
Options:
18
- -a, --accounts < NUM>
18
+ -a, --accounts < NUM>
19
19
Number of dev accounts to generate and configure
20
20
21
21
[default: 10]
22
22
23
- -b, --block-time < SECONDS>
23
+ -b, --block-time < SECONDS>
24
24
Block time in seconds for interval mining
25
25
26
- [aliases: -- blockTime]
26
+ [aliases: blockTime]
27
27
28
- --balance < NUM>
28
+ --balance < NUM>
29
29
The balance of every dev account in Ether
30
30
31
31
[default: 10000]
32
32
33
- --config-out < FILE>
33
+ --config-out < FILE>
34
34
Writes output of `anvil` as json to user-specified file
35
35
36
- --derivation-path < DERIVATION_PATH>
36
+ --derivation-path < DERIVATION_PATH>
37
37
Sets the derivation path of the child key to be derived.
38
38
39
39
[default: m/44'/60'/0'/0/]
40
40
41
- --dump-state < PATH>
41
+ --dump-state < PATH>
42
42
Dump the state and block environment of chain on exit to the given
43
43
file.
44
44
45
45
If the value is a directory, the state will be written to
46
- `< VALUE> /state.json`.
46
+ `< VALUE> /state.json`.
47
47
48
48
-h, --help
49
49
Print help (see a summary with '-h')
50
50
51
- --hardfork < HARDFORK>
51
+ --hardfork < HARDFORK>
52
52
The EVM hardfork to use.
53
53
54
- Choose the hardfork by name, e.g. `prague `, `cancun `, `shanghai `,
55
- `paris`, ` london`, etc... [default: latest]
54
+ Choose the hardfork by name, e.g. `cancun `, `shanghai `, `paris `,
55
+ `london`, etc... [default: latest]
56
56
57
- --init < PATH>
57
+ --init < PATH>
58
58
Initialize the genesis block with the given `genesis.json` file
59
59
60
- --ipc [< PATH> ]
60
+ --ipc [< PATH> ]
61
61
Launch an ipc server at the given path or default path =
62
62
`/tmp/anvil.ipc`
63
63
64
- [aliases: -- ipcpath]
64
+ [aliases: ipcpath]
65
65
66
- -j, --threads < THREADS>
66
+ -j, --threads < THREADS>
67
67
Number of threads to use. Specifying 0 defaults to the number of
68
68
logical cores
69
69
70
- [aliases: -- jobs]
70
+ [aliases: jobs]
71
71
72
- --load-state < PATH>
72
+ --load-state < PATH>
73
73
Initialize the chain from a previously saved state snapshot
74
74
75
- -m, --mnemonic < MNEMONIC>
75
+ -m, --mnemonic < MNEMONIC>
76
76
BIP39 mnemonic phrase used for generating accounts. Cannot be used if
77
77
`mnemonic_random` or `mnemonic_seed` are used
78
78
79
- --max-persisted-states < MAX_PERSISTED_STATES>
79
+ --max-persisted-states < MAX_PERSISTED_STATES>
80
80
Max number of states to persist on disk.
81
81
82
82
Note that `prune_history` will overwrite `max_persisted_states` to 0.
83
83
84
84
--mixed-mining
85
- [aliases: -- mixed-mining]
85
+ [aliases: mixed-mining]
86
86
87
- --mnemonic-random [< MNEMONIC_RANDOM> ]
87
+ --mnemonic-random [< MNEMONIC_RANDOM> ]
88
88
Automatically generates a BIP39 mnemonic phrase, and derives accounts
89
89
from it. Cannot be used with other `mnemonic` options. You can specify
90
90
the number of words you want in the mnemonic. [default: 12]
91
91
92
- --mnemonic-seed-unsafe < MNEMONIC_SEED>
92
+ --mnemonic-seed-unsafe < MNEMONIC_SEED>
93
93
Generates a BIP39 mnemonic phrase from a given seed Cannot be used
94
94
with other `mnemonic` options.
95
95
@@ -99,17 +99,17 @@ Options:
99
99
--no-mining
100
100
Disable auto and interval mining, and mine on demand instead
101
101
102
- [aliases: -- no-mine]
102
+ [aliases: no-mine]
103
103
104
- --number < NUM>
104
+ --number < NUM>
105
105
The number of the genesis block
106
106
107
- --order < ORDER>
107
+ --order < ORDER>
108
108
How transactions are sorted in the mempool
109
109
110
110
[default: fees]
111
111
112
- -p, --port < NUM>
112
+ -p, --port < NUM>
113
113
Port number to listen on
114
114
115
115
[default: 8545]
@@ -124,41 +124,41 @@ Options:
124
124
`--load-state` / `--state`, and aids in RPC calls beyond the block at
125
125
which state was dumped.
126
126
127
- --prune-history [< PRUNE_HISTORY> ]
127
+ --prune-history [< PRUNE_HISTORY> ]
128
128
Don't keep full chain history. If a number argument is specified, at
129
129
most this number of states is kept in memory.
130
130
131
131
If enabled, no state will be persisted on disk, so
132
132
`max_persisted_states` will be 0.
133
133
134
- -s, --state-interval < SECONDS>
134
+ -s, --state-interval < SECONDS>
135
135
Interval in seconds at which the state and block environment is to be
136
136
dumped to disk.
137
137
138
138
See --state and --dump-state
139
139
140
- --slots-in-an-epoch < SLOTS_IN_AN_EPOCH>
140
+ --slots-in-an-epoch < SLOTS_IN_AN_EPOCH>
141
141
Slots in an epoch
142
142
143
143
[default: 32]
144
144
145
- --state < PATH>
145
+ --state < PATH>
146
146
This is an alias for both --load-state and --dump-state.
147
147
148
148
It initializes the chain with the state and block environment stored
149
149
at the file, if it exists, and dumps the chain's state on exit.
150
150
151
- --timestamp < NUM>
151
+ --timestamp < NUM>
152
152
The timestamp of the genesis block
153
153
154
- --transaction-block-keeper < TRANSACTION_BLOCK_KEEPER>
154
+ --transaction-block-keeper < TRANSACTION_BLOCK_KEEPER>
155
155
Number of blocks with transactions to keep in memory
156
156
157
157
-V, --version
158
158
Print version
159
159
160
160
Display options:
161
- --color < COLOR>
161
+ --color < COLOR>
162
162
The color of the log messages
163
163
164
164
Possible values:
@@ -188,15 +188,15 @@ Display options:
188
188
including storage changes.
189
189
190
190
Server options:
191
- --allow-origin < ALLOW_ORIGIN>
191
+ --allow-origin < ALLOW_ORIGIN>
192
192
The cors `allow_origin` header
193
193
194
194
[default: *]
195
195
196
- --cache-path < PATH>
196
+ --cache-path < PATH>
197
197
Path to the cache directory where states are stored
198
198
199
- --host < IP_ADDR>
199
+ --host < IP_ADDR>
200
200
The hosts the server will listen on
201
201
202
202
[env: ANVIL_IP_ADDR=]
@@ -210,7 +210,7 @@ Server options:
210
210
default limit is 2MB
211
211
212
212
Fork config:
213
- --compute-units-per-second < CUPS>
213
+ --compute-units-per-second < CUPS>
214
214
Sets the number of assumed available compute units per second for this
215
215
provider
216
216
@@ -219,43 +219,43 @@ Fork config:
219
219
See also --fork-url and
220
220
[https://docs.alchemy.com/reference/compute-units#what-are-cups-compute-units-per-second](https://docs.alchemy.com/reference/compute-units#what-are-cups-compute-units-per-second)
221
221
222
- -f, --fork-url < URL>
222
+ -f, --fork-url < URL>
223
223
Fetch state over a remote endpoint instead of starting from an empty
224
224
state.
225
225
226
226
If you want to fetch state from a specific block number, add a block
227
227
number like `http://localhost:8545@1400000` or use the
228
228
`--fork-block-number` argument.
229
229
230
- [aliases: -- rpc-url]
230
+ [aliases: rpc-url]
231
231
232
- --fork-block-number < BLOCK>
232
+ --fork-block-number < BLOCK>
233
233
Fetch state from a specific block number over a remote endpoint.
234
234
235
235
If negative, the given value is subtracted from the `latest` block
236
236
number.
237
237
238
238
See --fork-url.
239
239
240
- --fork-chain-id < CHAIN>
240
+ --fork-chain-id < CHAIN>
241
241
Specify chain id to skip fetching it from remote endpoint. This
242
242
enables offline-start mode.
243
243
244
244
You still must pass both `--fork-url` and `--fork-block-number`, and
245
245
already have your required state cached on disk, anything missing
246
246
locally would be fetched from the remote.
247
247
248
- --fork-header < HEADERS>
248
+ --fork-header < HEADERS>
249
249
Headers to use for the rpc client, e.g. "User-Agent: test-agent"
250
250
251
251
See --fork-url.
252
252
253
- --fork-retry-backoff < BACKOFF>
253
+ --fork-retry-backoff < BACKOFF>
254
254
Initial retry backoff on encountering errors.
255
255
256
256
See --fork-url.
257
257
258
- --fork-transaction-hash < TRANSACTION>
258
+ --fork-transaction-hash < TRANSACTION>
259
259
Fetch state from a specific transaction hash over a remote endpoint.
260
260
261
261
See --fork-url.
@@ -268,7 +268,7 @@ Fork config:
268
268
See also --fork-url and
269
269
[https://docs.alchemy.com/reference/compute-units#what-are-cups-compute-units-per-second](https://docs.alchemy.com/reference/compute-units#what-are-cups-compute-units-per-second)
270
270
271
- [aliases: -- no-rpc-rate-limit]
271
+ [aliases: no-rpc-rate-limit]
272
272
273
273
--no-storage-caching
274
274
Explicitly disables the use of RPC caching.
@@ -279,46 +279,46 @@ Fork config:
279
279
280
280
See --fork-url.
281
281
282
- --retries < retries>
282
+ --retries < retries>
283
283
Number of retry requests for spurious networks (timed out requests)
284
284
285
285
Default value 5
286
286
287
- --timeout < timeout>
287
+ --timeout < timeout>
288
288
Timeout in ms for requests sent to remote JSON-RPC server in forking
289
289
mode.
290
290
291
291
Default value 45000
292
292
293
293
Environment config:
294
- --block-base-fee-per-gas < FEE>
294
+ --block-base-fee-per-gas < FEE>
295
295
The base fee in a block
296
296
297
- [aliases: -- base-fee]
297
+ [aliases: base-fee]
298
298
299
- --chain-id < CHAIN_ID>
299
+ --chain-id < CHAIN_ID>
300
300
The chain ID
301
301
302
- --code-size-limit < CODE_SIZE>
302
+ --code-size-limit < CODE_SIZE>
303
303
EIP-170: Contract code size limit in bytes. Useful to increase this
304
304
because of tests. To disable entirely, use
305
305
`--disable-code-size-limit`. By default, it is 0x6000 (~25kb)
306
306
307
307
--disable-block-gas-limit
308
- Disable the `call.gas_limit < = block.gas_limit` constraint
308
+ Disable the `call.gas_limit < = block.gas_limit` constraint
309
309
310
310
--disable-code-size-limit
311
311
Disable EIP-170: Contract code size limit
312
312
313
313
--disable-min-priority-fee
314
314
Disable the enforcement of a minimum suggested priority fee
315
315
316
- [aliases: -- no-priority-fee]
316
+ [aliases: no-priority-fee]
317
317
318
- --gas-limit < GAS_LIMIT>
318
+ --gas-limit < GAS_LIMIT>
319
319
The block gas limit
320
320
321
- --gas-price < GAS_PRICE>
321
+ --gas-price < GAS_PRICE>
322
322
The gas price
323
323
324
324
EVM options:
@@ -327,19 +327,19 @@ EVM options:
327
327
transaction sender to be simulated as different accounts, which is
328
328
useful for testing contract behavior
329
329
330
- [aliases: -- auto-unlock]
330
+ [aliases: auto-unlock]
331
331
332
332
--disable-console-log
333
333
Disable printing of `console.log` invocations to stdout
334
334
335
- [aliases: -- no-console-log]
335
+ [aliases: no-console-log]
336
336
337
337
--disable-default-create2-deployer
338
338
Disable the default create2 deployer
339
339
340
- [aliases: -- no-create2]
340
+ [aliases: no-create2]
341
341
342
- --memory-limit < MEMORY_LIMIT>
342
+ --memory-limit < MEMORY_LIMIT>
343
343
The memory limit per EVM execution in bytes
344
344
345
345
--odyssey
@@ -348,16 +348,16 @@ EVM options:
348
348
--optimism
349
349
Run an Optimism chain
350
350
351
- [aliases: -- optimism]
351
+ [aliases: optimism]
352
352
353
353
--print-traces
354
354
Enable printing of traces for executed transactions and `eth_call` to
355
355
stdout
356
356
357
- [aliases: -- enable-trace-printing]
357
+ [aliases: enable-trace-printing]
358
358
359
359
--steps-tracing
360
360
Enable steps tracing used for debug calls returning geth-style traces
361
361
362
- [aliases: -- tracing]
362
+ [aliases: tracing]
363
363
```
0 commit comments