-
Notifications
You must be signed in to change notification settings - Fork 622
Commit
Co-authored-by: mattsse <[email protected]>
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# cast codehash | ||
|
||
Get the codehash for an account | ||
|
||
```bash | ||
$ cast codehash --help | ||
Usage: cast codehash [OPTIONS] <WHO> [SLOTS]... | ||
|
||
Arguments: | ||
<WHO> | ||
The address to get the codehash for | ||
|
||
[SLOTS]... | ||
The storage slot numbers (hex or decimal) | ||
|
||
Options: | ||
-B, --block <BLOCK> | ||
The block height to query at. | ||
|
||
Can also be the tags earliest, finalized, safe, latest, or pending. | ||
|
||
-r, --rpc-url <URL> | ||
The RPC endpoint | ||
|
||
[env: ETH_RPC_URL=] | ||
|
||
--flashbots | ||
Use the Flashbots RPC URL with fast mode (<https://rpc.flashbots.net/fast>). | ||
|
||
This shares the transaction privately with all registered builders. | ||
|
||
See: <https://docs.flashbots.net/flashbots-protect/quick-start#faster-transactions> | ||
|
||
--jwt-secret <JWT_SECRET> | ||
JWT Secret for the RPC endpoint. | ||
|
||
The JWT secret will be used to create a JWT for a RPC. For example, the following can be | ||
used to simulate a CL `engine_forkchoiceUpdated` call: | ||
|
||
cast rpc --jwt-secret <JWT_SECRET> engine_forkchoiceUpdatedV2 | ||
'["0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", | ||
"0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", | ||
"0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc"]' | ||
|
||
[env: ETH_RPC_JWT_SECRET=] | ||
|
||
-h, --help | ||
Print help (see a summary with '-h') | ||
``` |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# cast storage-root | ||
|
||
Get the storage root for an account | ||
|
||
```bash | ||
$ cast storage-root --help | ||
Usage: cast storage-root [OPTIONS] <WHO> [SLOTS]... | ||
|
||
Arguments: | ||
<WHO> | ||
The address to get the storage root for | ||
|
||
[SLOTS]... | ||
The storage slot numbers (hex or decimal) | ||
|
||
Options: | ||
-B, --block <BLOCK> | ||
The block height to query at. | ||
|
||
Can also be the tags earliest, finalized, safe, latest, or pending. | ||
|
||
-r, --rpc-url <URL> | ||
The RPC endpoint | ||
|
||
[env: ETH_RPC_URL=] | ||
|
||
--flashbots | ||
Use the Flashbots RPC URL with fast mode (<https://rpc.flashbots.net/fast>). | ||
|
||
This shares the transaction privately with all registered builders. | ||
|
||
See: <https://docs.flashbots.net/flashbots-protect/quick-start#faster-transactions> | ||
|
||
--jwt-secret <JWT_SECRET> | ||
JWT Secret for the RPC endpoint. | ||
|
||
The JWT secret will be used to create a JWT for a RPC. For example, the following can be | ||
used to simulate a CL `engine_forkchoiceUpdated` call: | ||
|
||
cast rpc --jwt-secret <JWT_SECRET> engine_forkchoiceUpdatedV2 | ||
'["0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", | ||
"0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc", | ||
"0x6bb38c26db65749ab6e472080a3d20a2f35776494e72016d1e339593f21c59bc"]' | ||
|
||
[env: ETH_RPC_JWT_SECRET=] | ||
|
||
-h, --help | ||
Print help (see a summary with '-h') | ||
``` |