> ## 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.

# debug_getModifiedAccountsByHash

Returns the addresses of accounts whose state changed between two blocks, identified by hash. With one block hash, it returns the accounts changed in that block.

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

***

> [!NOTE]
>
> Linea Mainnet can answer this method for about the last 1,100 blocks (about two hours at Linea's 7-second block time). Older blocks return JSON-RPC error `-32000` with the message `World state unavailable`. A request can span at most 512 blocks; wider ranges return error `-32005` with the message `Requested range exceeds maximum RPC range limit`. The example below uses fixed blocks, so replace them with recent block hashes, for example from [eth\_getBlockByNumber](https://docs.validationcloud.io/nodeapi/linea/execution-api/eth_getblockbynumber.md) with `"latest"`.

## **Parameters**

1. `startHash` - String - Required - The hash of the block to start from.
2. `endHash` - String - (Optional) - The hash of the block to end at. Changes made in the blocks after the start block up to and including the end block are returned.

```json theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
params: [
  "0x25219c00e0d32c1a77bc4c14a04c6a910e5a8b748e34025f914ee4d2c0b81bef",
  "0x59d7d019e4b6aed2d8de88fcacd9600e4ffd5330112babf88294075a6121b62e"
]
```

## **Returns**

`array` - The addresses of the modified accounts.

```json theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
// Result
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    "0x0000f90827f1c53a10cb7a02335b175320002935",
    "0x000f3df6d732807ef1319fb7b8bb8522d0beac02",
    "0x160601d3b680b957ab427aeafa0eaa59bc45fa6e",
    "0x2b3068c4b288a2cd1f8b3613b8f33ef7ceecadc4"
    // ...
  ]
}
```

```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":"debug_getModifiedAccountsByHash","params":["0x25219c00e0d32c1a77bc4c14a04c6a910e5a8b748e34025f914ee4d2c0b81bef","0x59d7d019e4b6aed2d8de88fcacd9600e4ffd5330112babf88294075a6121b62e"],"id":1}'
```


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