> ## Documentation Index
> Fetch the complete documentation index at: https://docs.validationcloud.io/llms.txt
> Use this file to discover all available pages before exploring further.

# eth_getProof

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

This method will use `40` [Compute Units](https://docs.validationcloud.io/nodeapi/about/billing.md).

***

> [!NOTE]
>
> World Chain Mainnet serves proofs for the latest block only. Requests for an older block return JSON-RPC error `-32602` with the message `distance to target block exceeds maximum proof window`.

## **Parameters**

1. `address`- String - The address of the account for which the balance is to be checked.
2. `storageKeys` - Array\[Strings] - An array of storage-keys that should be proofed and included.
3. `blockNumber` - String -  The block number as a string in hexadecimal format or the string `"latest"`, `"earliest"` or `"pending"`, see the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block-parameter).

## Returns

* `address` - The address associated with the account.
* `accountProof` - An array of rlp-serialized MerkleTree-Nodes which starts with the stateRoot-Node and follows the path of the Keccak-256 hash of the address as key.
* `balance` - The current balance of the account in wei.
* `codeHash` - A 32 byte hash of the code of the account.
* `nonce` - The account's transaction count (nonce), as a hexadecimal value.
* `storageHash` - The 32-byte storage root of the account. Every storage proof starts from this root hash.
* `storageProof` - An array of storage-entries as requested. Each entry is an object with the following fields:
  * `key` - The requested storage key.
  * `value` - The storage value.
  * `proof` - An array of rlp-serialized MerkleTree-Nodes which starts with the account's `storageHash` node and follows the path of the Keccak-256 hash of the storage key.

```json theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
// Result
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "address": "0x2cfc85d8e48f8eab294be644d9e25c3030863003",
    "balance": "0x0",
    "codeHash": "0xe215bba39e0b049947e83dfe92b9d82a309a720ec21c1cb63b4f56ff6d26a71e",
    "nonce": "0x1",
    "storageHash": "0x8143ce242c8a4fb251c031ea71fd3bc155d6a6e1dbfac312e0ec268c18fec929",
    "accountProof": [
      "0xf90211a02a98d4079839f0fbf2dfb0c8211e5b26021e7f756d8e376ba7658298b5c1c03ea09973f1b0c986764a2535446d2d95c2c27f4b4f2eaf5200c6c6bd6d...",
      "0xf90211a017fc3b26d74d57e964705795de723de6dcef8bd54738ac87671b8e3c7682f273a0705e8357b573b9cf0e31c12d70260f694a963f4732c5b67f114bdd...",
      "0xf90211a0ed52cc70c1281c6a1bdd2ece3f17c4d25471cb143c6f30d1a613f288019b13c2a0281a430cbc2a873937903b29ec8c8da20352b90b2593d5322c96e9..."
    ],
    "storageProof": [
      {
        "key": "0x0",
        "value": "0x0",
        "proof": [
          "0xf90211a08620e52e3b680e8852ac0de371a5c252c5155d81d79fc04639cc2d2aeebb5193a003456387002d499cc35b0755fc25b92cfe5d21b686906d122d50cc...",
          "0xf90211a0ec695dca90074dc9b5a803f899300108ca7e0a2ef5728c9220e234b236560355a0ee61e9b257caa6d71eb2dff187d069a4f12a4bea25d712646823b6...",
          "0xf90211a0e6e5aaefb4bcd15fa2199c893ef6a0caeabbff452ed3457f733ba482a61644bda0127aac5f6926554d8617553f4e24b322d9901f1a12fdb1c1ac3a11...",
          "0xf90211a06ad0ea34a2c801d7987ea108a7194b4f679dc12efa0187d20e3717cb78f4d2c0a049af0f74f0e9ecb0461024d0d45db1d54bdd319254e314c96df38c...",
          "0xf90211a0a1eac493d419eeeba952555f931644ac36c5cfdcccd043b4a425924464a8cce3a010de7dbd507a6ebdd23a2f6aa6934c84ea90f4822d58cafe2a6f38...",
          "0xf90191a0996b9d631ee7092b1f5bd307311d947fe1a16a8f8c413cb8417d056170cc2bada0cab0e149a2de51f1b2bf453aa21e45405660afb6001161be8c2935...",
          "0xe89e20e0b79b090783a37a0bac93b44c394af52e24ba56313a5f2323274be4a988874ff78e3b3b7fb1"
        ]
      }
    ]
  }
}
```

```bash title="mainnet" theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
curl https://mainnet.worldchain.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0","method":"eth_getProof","params":["0x2cfc85d8e48f8eab294be644d9e25c3030863003",["0x0"],"latest"],"id":1}'
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.