eth_getProof - Ethereum

Shows the storage- and the account-values of the required account with the Merkle-proof on this list

How to Use the eth_getProof Method

Parameters

DATA, 20 bytes - account or contract address

ARRAY, 32 Bytes - array that consists of storage-keys that must be proofed and included. More information at eth_getStorageAt.

QUANTITY|TAG - the string "latest", "earliest" or "pending", or an integer block number.

What you receive

Recalls Object - An account object:

  • balance: QUANTITY - the account’s ETH balance. For more info, check out eth_getBalance

  • codeHash: DATA, 32 Bytes - the account’s code hash. If there is an account with no code Account, it will return "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470"

  • nonce: QUANTITY, - the account’s nonce. Check eth_getTransactionCount for more info.

  • storageHash: DATA, 32 Bytes - the StorageRoot’s SHA3. The storage delivers MerkleProof that starts with this rootHash.

  • accountProof: ARRAY - rlp-serialized MerkleTree-Nodes, that starts with the stateRoot-Node which follows the path of the SHA3 (address) as key.

  • storageProof: ARRAY - requested storage-entries. Each entry is presented as a object with the following properties:

    • key: QUANTITY - the requested storage key

    • value: QUANTITY - the storage value

    • proof: ARRAY - rlp-serialized MerkleTree-Nodes, that starts with the stateRoot-Node which follows the path of the SHA3 (address) as path.

Sample

Here is a typical appliance example.

Call

Outcome

Last updated