Coinbase Wallet SDK
eth_getProof
Get the Merkle proof for account and storage values
Defined in the Ethereum JSON-RPC Specification
Returns the account and storage values of the specified account including the Merkle-proof.
Parameters
The address of the account (20 bytes).
Array of storage-keys which should be proofed and included.
Integer block number, or the string “latest”, “earliest” or “pending”.
Returns
The proof object containing account and storage proofs.
Error Handling
Code | Message | Description |
---|---|---|
-32602 | Invalid parameters | Invalid address, storage keys, or block parameter |
4100 | Requested method not supported | The method is not supported by the wallet |
This method is useful for verifying account states and storage values using Merkle proofs without trusting the provider.