cast-proof - Generate a storage proof for a given storage slot.
cast proof
[options] address [slots...]
Generate a storage proof for a given storage slot.
The address (address) can be an ENS name or an address.
The displayed output is a JSON object with the following keys:
accountProof
: Proof for the account itselfaddress
: The address of the accountbalance
: The balance of the accountcodeHash
: A hash of the account's codenonce
: The nonce of the accountstorageHash
: A hash of the account's storagestorageProof
: An array of storage proofs, one for each requested slotstorageProof.key
: The slotstorageProof.proof
: The proof for the slotstorageProof.value
: The value of the slot
-B
block
--block
block
The block height you want to query at.
Can be a block number, or any of the tags: earliest
, latest
or pending
.
{{#include ../common/rpc-url-option.md}}
{{#include ../common/display-options.md}}
{{#include common-options.md}}
- Get the proof for storage slot 0 on the WETH contract:
cast proof 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 0