Skip to content

eth_getProof

Defined in EIP-1186

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

Parameters

type GetProofParams = [string, string[], string]
  1. The address of the account
  2. Array of storage-keys which should be proofed and included
  3. Block number or tag (as hexadecimal string)

Returns

interface ProofResult {
  /**
   * The address of the account being proved.
   */
  address: string
  /**
   * The balance of the account.
   */
  balance: string
  /**
   * The hash of the code of the account.
   */
  codeHash: string
  /**
   * The nonce of the account.
   */
  nonce: string
  /**
   * The storage hash of the account.
   */
  storageHash: string
  /**
   * Array of storage entries as requested.
   */
  storageProof: StorageProofEntry[]
}
 
interface StorageProofEntry {
  /**
   * The storage key.
   */
  key: string
  /**
   * The storage value.
   */
  value: string
  /**
   * Array of rlp-serialized MerkleTree-Nodes, starting with the stateRoot-Node.
   */
  proof: string[]
}

Errors

CodeMessage
4200Unsupported method