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

Returns the addresses of accounts whose state changed between two blocks. With one block number, 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 numbers, for example from [eth\_blockNumber](https://docs.validationcloud.io/nodeapi/linea/execution-api/eth_blocknumber.md). Tags such as `"latest"` are not accepted.

## **Parameters**

1. `startBlock` - Integer - Required - The block number to start from, as a decimal integer or a hexadecimal string.
2. `endBlock` - Integer - (Optional) - The block number to end at. Changes made in the blocks after `startBlock` up to and including `endBlock` are returned, so `endBlock` must be greater than `startBlock`.

```json theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
params: [32790531, 32790532]
```

## **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_getModifiedAccountsByNumber","params":[32790531,32790532],"id":1}'
```


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