Returns the Merkle proof for an account and optionally some storage keys.
eth_getProof
JSON-RPC method returns the Merkle proof for an account and optionally some storage keys. This method is essential for verifying account states and storage values without trusting the node, enabling light clients and cross-chain verification systems.
address
(string, required) — The 20-byte account address to get the proof forstorageKeys
(array, optional) — Array of 32-byte storage keys to include in the proofblock
(string, required) — Block identifier: "latest"
(only the latest block is supported on Hyperliquid)address
— The account addressaccountProof
— Array of RLP-encoded Merkle tree nodes for the account proofbalance
— The account balance in wei as a hexadecimal stringcodeHash
— The hash of the account codenonce
— The account nonce as a hexadecimal stringstorageHash
— The hash of the storage trie rootstorageProof
— Array of storage proof objects for requested keyskey
— The storage keyvalue
— The storage value at the keyproof
— Array of RLP-encoded Merkle tree nodes for the storage proof"latest"
block parameter is supportedeth_getProof
method is essential for applications that need to:
eth_getProof
only supports the latest block. The proof returned can be used to cryptographically verify the account state and any requested storage values against the current state root.Successful response
The response is of type object
.