Skip to main content
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.
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. 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.

Returns

array - The addresses of the modified accounts.