post https://optimism-mainnet.core.chainstack.com/efb0a5eccd2caa5135eb54eba6f7f300/
Optimism API method eth_getProof
retrieves the account and storage values of the specified account, including the Merkle-proof. This method is used to verify the data without needing the entire state on the client side.
Get you own node endpoint today
Start for free and get your app to production levels immediately. No credit card required.
You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
address
β the address of the account.storageKeys
β an array of storage keys to prove.block
β the block number (in hexadecimal) or one of the strings"earliest"
,"latest"
, or"pending"
, indicating the state to consider. The default is"latest"
.
Response
result
β an object containing the account proof, balance, code hash, nonce, storage hash, and storage proof for each requested storage key.
Use case
The eth_getProof
method is essential for:
- Applications that need to verify account or contract state without syncing the entire blockchain.
- Services that provide cryptographic proofs of specific data to third parties.
- Tools that audit the state of accounts or contracts at specific block heights.
Try the eth_getProof
RPC method yourself
eth_getProof
RPC method yourself