Difference between revisions of "Cast"
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{lowercase}} | {{lowercase}} | ||
* [https://book.getfoundry.sh/cast/ Homepage], [https://github.com/foundry-rs/foundry/tree/master/crates/cast GitHub] | * [https://book.getfoundry.sh/cast/ Homepage], [https://github.com/foundry-rs/foundry/tree/master/crates/cast GitHub] | ||
− | |||
* [[Foundry installation]], in <code>[[~/.foundry/bin]]</code> using <code>[[curl]]</code>. | * [[Foundry installation]], in <code>[[~/.foundry/bin]]</code> using <code>[[curl]]</code>. | ||
− | |||
− | |||
== Commands == | == Commands == | ||
* <code>[[cast --help]]</code> | * <code>[[cast --help]]</code> | ||
Line 26: | Line 23: | ||
* [[Execution clients]] | * [[Execution clients]] | ||
* <code>[[eth-cli]]</code> | * <code>[[eth-cli]]</code> | ||
− | * [[ | + | * [[Viem]] |
* <code>[[curl -X POST -H "Content-Type: application/json"]] --compressed [[--data]]</code> | * <code>[[curl -X POST -H "Content-Type: application/json"]] --compressed [[--data]]</code> | ||
'{"[[jsonrpc]]":"2.0","method":"[[debug_traceBlockByNumber]]","params":["0x12345",{"enableMemory":false,"disableStack":false,"disableStorage":false,"enableReturnData":true}],"id":1}' http://YOUR-RPC-ENDPOINT:[[8545]] | '{"[[jsonrpc]]":"2.0","method":"[[debug_traceBlockByNumber]]","params":["0x12345",{"enableMemory":false,"disableStack":false,"disableStorage":false,"enableReturnData":true}],"id":1}' http://YOUR-RPC-ENDPOINT:[[8545]] |
Latest revision as of 14:14, 20 September 2024
- Homepage, GitHub
- Foundry installation, in
~/.foundry/bin
usingcurl
.
Contents
Commands[edit]
cast --help
cast rpc
cast wallet
cast tx
cast send
cast balance
cast nonce
cast call
cast block
:lastest
cast block-number --rpc-url
cast chain-id
Activities[edit]
Related[edit]
- Ethereum RPC calls
- Execution clients
eth-cli
- Viem
curl -X POST -H "Content-Type: application/json" --compressed --data
'{"jsonrpc":"2.0","method":"debug_traceBlockByNumber","params":["0x12345",{"enableMemory":false,"disableStack":false,"disableStorage":false,"enableReturnData":true}],"id":1}' http://YOUR-RPC-ENDPOINT:8545
See also[edit]
Advertising: