debug_getModifiedAccountsByNumber | Optimism

The debug_getModifiedAccountsByNumber RPC method retrieves a list of accounts that were modified between two specified block numbers. This method is invaluable for developers and analysts looking to track changes to the state of accounts across specific blocks for debugging or analytical purposes.

👍

Get you own node endpoint today

Start for free and get your app to production levels immediately. No credit card required.

You can sign up with your GitHub, X, Google, or Microsoft account.

Request

To use debug_getModifiedAccountsByNumber, you should send a POST request with a JSON RPC call in the body.

Parameters

  • Start Block (string): The block number (in hexadecimal) from which to start tracking changes.
  • End Block (string): The block number (in hexadecimal) up to which to track changes.

Response

The response will be an array of account addresses (as strings) that were modified between the two specified blocks.

  • result (array): The addresses of the accounts modified between the specified blocks.

Use case

The debug_getModifiedAccountsByNumber method is essential for:

  • Developers debugging contract interactions over specific blocks.
  • Analysts tracking state changes for forensic or audit purposes.
  • Tools and services monitoring the Optimism state for changes to specific accounts.

Try the debug_getModifiedAccountsByNumber RPC method yourself

Language
Click Try It! to start a request and see the response here!