> ## 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]
>
> Elysium serves `eth_getProof` for recent blocks only. A request for an older block returns JSON-RPC error `-32000` with the message `state <root> is not available`. Other state methods such as `eth_getBalance` and `eth_call` work for any block.

## **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": "0x1742b836bd6acb3f996e17f4b5b3bd172d97a93b",
    "accountProof": [
      "0xf90211a018e1d15db0bbb7782949b5f7857f97414ba2b2baf8c708142978012d2168349ea0ccba5c1a0dcfaeec69b09af2beb1b661395d564cdc9ddc0e2d48a6...",
      "0xf90211a072975e5e2dc6ed636e57914603fd4d58c490c96e9cddcf54240ae1f5c24d63b9a0832b7171cd29caa5a9674bcf098eda060ba56f6c7acd91e89f2038...",
      "0xf90211a03c27a2b48c6305519c284305f2460e0a5e6abc8c0ae528dcabcd13b1744fef9ea08c5ff60051dc7514d26a425b62895ff12a285517cc812f3ef96841...",
      "0xf90211a05b826dcd5bf81215b1aa3adbcc2b3d9523686f6f0c3498063e2ba5dbad897668a0ebfcd157886d80b42a190ce3c66f78d68bf99386b822940544fc29...",
      "0xf9011180a0743c622f36e5593cd902e126e715ea15507588354d6e0daf08db2b25ee06443ba0e1308a74fce162c2165e10b9891d1e623ac116927101292fe8b6...",
      "0xf8679e3ccb14d044f07225be0d86d3480da6e1c809a27b3fcd043aee1d88760aa2b846f8440180a01c5b279a80f3d6f42bb5d743c36df0a85c3dfb3551d97d6b..."
    ],
    "balance": "0x0",
    "codeHash": "0xe4f824e4f2f38821e50195c59be528c5bf21c6f9d4f2ebc70e0fbb19934a42f9",
    "nonce": "0x1",
    "storageHash": "0x1c5b279a80f3d6f42bb5d743c36df0a85c3dfb3551d97d6bcc14eb2a73193cee",
    "storageProof": [
      {
        "key": "0x0",
        "value": "0x50756d7020436174000000000000000000000000000000000000000000000010",
        "proof": [
          "0xf90211a0a226588a085b73aeeca30609bb35304c81942144be93c213ec4a57a27f6a345ca0f13837822d8d32771190f1483b954a3091e3b396df13c8eb9d7c6c...",
          "0xf89180808080a0a5c3e07edfe7859ffd4d210adc4c94bf0b7ceea42c8ee676e08aab4b01ed707b80a0dddd0ccfa21465f5796bd034ae9e5ca73b194d9b94135e...",
          "0xf843a0200decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563a1a050756d702043617400000000000000000000000000000000000000..."
        ]
      }
    ]
  }
}
```

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

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


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