eth_getProof
Returns the account and storage values of the specified account including the Merkle-proof. This call can be used to verify that the data you are pulling from is not tampered with.
Parameters
DATA, 20 Bytes - address of the account.ARRAY, 32 Bytes - array of storage-keys which should be proofed and included.QUANTITY|TAG- integer block number, or the string"latest"or"earliest", see the default block parameter
Returns
Object - A account object:
balance:QUANTITY- the balance of the account. Seeeth_getBalancecodeHash:DATA, 32 Bytes - hash of the code of the account. For a simple Account without code it will return"0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470"nonce:QUANTITY, - nonce of the account.storageHash:DATA, 32 Bytes - SHA3 of the StorageRoot. All storage will deliver a MerkleProof starting with this rootHash.accountProof:ARRAY- Array of rlp-serialized MerkleTree-Nodes, starting with the stateRoot-Node, following the path of the SHA3 (address) as key.storageProof:ARRAY- Array of storage-entries as requested. Each entry is a object with these properties:key:QUANTITY- the requested storage keyvalue:QUANTITY- the storage valueproof:ARRAY- Array of rlp-serialized MerkleTree-Nodes, starting with the storageHash-Node, following the path of the SHA3 (key) as path.
Example
Request
Result
Last updated