POST
/
efb0a5eccd2caa5135eb54eba6f7f300
curl --request POST \
  --url https://optimism-mainnet.core.chainstack.com/efb0a5eccd2caa5135eb54eba6f7f300 \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "method": "debug_getModifiedAccountsByNumber",
  "id": "1",
  "params": [
    "0x6eee4bc",
    "0x6eee4bd"
  ]
}'
{
  "jsonrpc": "<string>",
  "id": "<string>",
  "result": [
    "<string>"
  ]
}

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.

Body

application/json
jsonrpc
string
default:2.0
required
method
string
default:debug_getModifiedAccountsByNumber
required
id
string
default:1
required
params
string[]
required

Response

200 - application/json
A list of accounts modified between the two block numbers
jsonrpc
string
id
string
result
string[]

The addresses of the modified accounts.