> ## 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]
>
> Linea Mainnet keeps state for the last 512 blocks, about an hour. Requests for an older block return JSON-RPC error `4444` with the message `Pruned history unavailable`.

## **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": {
    "accountProof": [
      "0xf90211a0138844685d89a72b443c413e3304bb6752afccf4cf414002c534e1860b812effa081f5ad82a6b5de02815f67cb30a675cc0f8a074e97b9ec08555ef1...",
      "0xf90211a096a3165b3eb96a9117a6d2529cd21b40d5ecffb122684095817a7425ceffca78a04d3e514df00b762eae50e02afaa3e4d97fd1666a59a41fa0d98324...",
      "0xf90211a0d3fee95d4b0b34679d68e22c58a251e85a07d62db75397fe85e0b5ead0cd9a2da0ee300e6c41731a39988aa9c7d2ca3d6b7d9b38d65feed5e78078ac...",
      "0xf90211a07cfbbbfd022d1369df5a5dd3ebe15899bba95ac814c55236fa397c98f4cf27bca0415928ce6388bbb96f662aca159968440f4ae55a8ad14c2cc9f243...",
      "0xf90211a0564ed51b0a1d7f069bf349519689653e7c672e4e22bd5b154e7680753e4371b7a0ccb90a479aa61eeb44d64e0f498a57e334df5a4cd7631bcca4395a...",
      "0xf8b18080a0a1ea1dbde7fdf7a2b678223cdf8a776fd643046163097288ea86a96f1838bc34a0289146336d7afffc2e2899631452f4a8f5c91d07f4e72c27d252...",
      "0xf871808080808080a0af463ca4ce5ac7e0b573a4db56f8d9f7ccd5dcdea5a80459fc464df53f33ef66808080a09c967f210909737f25925c9d3e20d1e51fdb8e...",
      "0xf86f9d34ba1dbf94e3c0f229ba5ee26098aa5c668994e1423defa4d71ff9419eb84ff84d0189bf4ac95f6b9ac89f7fa0a7b549710b1558cd1ebd3d384d3bc802..."
    ],
    "address": "0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f",
    "balance": "0xbf4ac95f6b9ac89f7f",
    "codeHash": "0xa670ec6c272ddec6d328d6f3d5cad65a841a6ab45e8e5cf825150eb458be4f1f",
    "nonce": "0x1",
    "storageHash": "0xa7b549710b1558cd1ebd3d384d3bc80244ed84444565e06d9ab855ece25868d6",
    "storageProof": [
      {
        "key": "0x0",
        "value": "0x577261707065642045746865720000000000000000000000000000000000001a",
        "proof": [
          "0xf90211a066d5b36ae20d6652a2632dbd15b7aa8c4b08e2e27b797d92caa912e61fb14d62a0af039d43281e83da4aa400b9f6d639b117ed821bb1d60b39eb7dd8...",
          "0xf90211a0f44f0d83e14eb1b3b0e3b9bbc4c5db191c78427edf21f1a014faa9e79b72379da058cf11159cac7574515f4fce9265ef00d589663a57b167811ddac5...",
          "0xf90211a0b2730780b50d36aace6d1bc18fbe9c16c69d4d2a885b52dfab07bcd3c17a84b5a01f2d57dd0cb0d10db936af8b680aecd317f58e2a94a146f83b2bed...",
          "0xf90211a07814670456408a46f45fb763006b5e9b4d69182941f880321e362daab4c3067ca0510aadd4cd5c9143cd098cc380d9260da1fdd511eddaa607fd5002...",
          "0xf90191a00a874150955a7c2732e013dee40c4f9ad6fbe59d3a13ce1b15eae946a6bb73eca0e367835b6382e61eff923551fb9670dce8e6289f3b5249e5107194...",
          "0xf8419e3cd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563a1a05772617070656420457468657200000000000000000000000000000000..."
        ]
      }
    ]
  }
}
```

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


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