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

Returns

array - The addresses of the modified accounts.