DOCUMENTATION
cast proof
NAME
cast-proof - Generate a storage proof for a given storage slot.
SYNOPSIS
cast proof
[options] address [slots...]
DESCRIPTION
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
OPTIONS
Query Options
-B
block
--block
block
The block height you want to query at.
Can be a block number, or any of the tags: earliest
, finalized
, safe
, latest
or pending
.
RPC Options
--rpc-url
url
The RPC endpoint. Accepts a URL or an existing alias in the [rpc_endpoints] table, like mainnet
.
Environment: ETH_RPC_URL
Display Options
-j
--json
Print the deployment information as JSON.
Common Options
-h
--help
Prints help information.
EXAMPLES
- Get the proof for storage slot 0 on the WETH contract:
cast proof 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 0