For the complete documentation index, see llms.txt. This page is also available as Markdown.

eth_getProof

Returns the account and storage values, including the Merkle proof, of the specified account.

Parameters

address: DATA, 20 Bytes - address to check for balance.

storageKeys: Arrayof DATA - array of 32 bytes storage keys to be proofed and included.

blockParameter: QUANTITY|TAG - hexadecimal block number, or one of the string tags latest, earliest, safe, or finalized. See the default block parameter.

Returns

  • balance: QUANTITY-Hexadecimal of the current balance in wei.

  • codeHash: DATA, 32 Bytes - Hash of the code of the account.

  • nonce: QUANTITY - The nonce of the account.

  • storageHash: DATA, 32 bytes - The SHA3 of the StorageRoot. All storage will deliver a Merkle proof starting with this rootHash.

  • accountProof: ArrayofDATA - Array of RLP-serialized MerkleTree-Nodes, starting with the stateRoot-Node, following the path of the SHA3 (address) as key.

  • storageProof: ArrayofDATA - Array of storage-entries as requested. Each entry is an object with these properties:

    • key: DATA- The requested storage key.

    • value: QUANTITY- The storage value.

    • proof: Arrayof DATA - Array of RLP-serialized MerkleTree-Nodes, starting with the storageHash-Node, following the path of the SHA3 (key) as path.

Example

Request

Result

source

Last updated