POST
/
2fc1de7f08c0465f6a28e3c355e0cb14
curl --request POST \
  --url https://base-mainnet.core.chainstack.com/2fc1de7f08c0465f6a28e3c355e0cb14 \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "method": "debug_getModifiedAccountsByHash",
  "id": 1,
  "params": [
    "0x5208b53713adbfe3397055946b487b16c45f018dee8213df81b3f4ccb9b3142d"
  ]
}'
{
  "jsonrpc": "<string>",
  "id": 123,
  "result": [
    "<string>"
  ]
}

The debug_getModifiedAccountsByHash RPC method retrieves a list of accounts that were modified in a specific block, identified by the block’s hash. This method is useful for developers and analysts who need to track changes to the state of accounts within a particular block 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_getModifiedAccountsByHash, you should send a POST request with a JSON RPC call in the body.

Parameters

  • Block Hash (string): The hash of the block for which to retrieve the list of modified accounts.

Response

The response will be an array of account addresses (as strings) that were modified in the specified block.

  • result (array): The addresses of the accounts modified in the specified block.

Use case

The debug_getModifiedAccountsByHash method is essential for:

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

Body

application/json

Response

200 - application/json
A list of accounts modified in the specified block

The response is of type object.