eth_getProof

The eth_getProof method returns the account and storage values of the specified account including the Merkle proof on the Optimism network. This method provides cryptographic proofs that can verify account balances, nonces, and storage values without needing to trust the RPC provider. It's essential for light clients, cross-chain bridges, and any application requiring trustless verification of Optimism state.


Parameters

parameter
type
description
address
string (required)
The address to get proof for (20 bytes)
storageKeys
array (required)
Array of storage key positions to get proofs for
blockParameter
string (required)
Block number in hex or tag (latest, earliest, pending)
Return Object

Returns account proof and storage proofs with Merkle tree data. Includes address, balance, code hash, nonce, storage hash, account proof array, and storage proof objects.

Request Example
Request
Response Example
Response

Share on
Share on FacebookShare on XShare on LinkedIn
Did you find this page useful?