Caducues EVM JSON-RPC
eth

getProof

1min
POST

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

The API allows IoT devices or mobile apps which are unable to run light clients to verify responses
from untrusted sources, by using a trusted block hash.

Parameters

DATA - 20-byte address of the account or contract.

ARRAY - Array of 32-byte storage keys to generate proofs for.

QUANTITY|TAG - Integer representing a block number or one of the string tags latest,
earliest, or pending

Returns

result: Object - Account details:

  • balance:Quantity - Account balance.
  • codeHash:Data, 32-byte - Hash of the account code.
  • nonce:Quantity - Number of transactions sent from the account.
  • storageHash:Data, 32-byte - SHA3 of the storageRoot.
  • accountProof:Array - RLP-encoded Merkle tree nodes, starting with the stateRoot.
  • storageProof:Array- Storage entries. Each entry is an object that displays:
    • key:Quantity - Storage key.
    • value:Quantity - Storage value.
    • proof:Array - RLP-encoded Merkle tree nodes, starting with the storageHash.
Authentication
Authorization
Body Parameters
body
Responses
200




Updated 25 Mar 2024
Did this page help you?