> ## Documentation Index
> Fetch the complete documentation index at: https://docs.uniblock.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# starknet_getStateUpdate

> Returns information about the result of executing the specified block.

### Parameters

<ParamField query="chainId" type="string" default="starknet-sepolia" required>
  Unique identifier for a blockchain network.
</ParamField>

<ParamField body="id" type="number" default={1} required>
  Request identifier used to match responses.
</ParamField>

<ParamField body="jsonrpc" type="string" default="2.0" required>
  JSON-RPC version.
</ParamField>

<ParamField body="method" type="string" default="starknet_getStateUpdate" required>
  JSON-RPC method name.
</ParamField>

<ParamField body="params" type="object" default={{"block_id":{"block_hash":"0x041b10c45dc3f39372f7b9409261cac9d880c5d75a5bb077d028db20b1bd76c4"}}} placeholder="{&#x22;block_id&#x22;:{&#x22;block_hash&#x22;:&#x22;0x041b10c45dc3f39372f7b9409261cac9d880c5d75a5bb077d028db20b1bd76c4&#x22;}}" required>
  Parameters for starknet\_getStateUpdate

  Parameters for <code>starknet\_getStateUpdate</code>:

  <ul>
    <li><code>params.block\_id</code>: BlockID object containing hash and number.</li>
  </ul>
</ParamField>

### Returns

<ResponseField name="result" type="object">
  State update object returned by starknet\_getStateUpdate

  <Expandable title="properties">
    <ResponseField name="block_hash" type="string">
      Hash of the block. Not included in pending state update.
    </ResponseField>

    <ResponseField name="old_root" type="string">
      Previous global state root.
    </ResponseField>

    <ResponseField name="new_root" type="string">
      New global state root. Not included in pending state update.
    </ResponseField>

    <ResponseField name="state_diff" type="object">
      State diff applied in this block (map of address to changes).
    </ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash Curl theme={null}
  curl --request POST \
    --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=starknet-sepolia \
    --header 'content-type: application/json' \
    --data '{
      "id": 1,
      "jsonrpc": "2.0",
      "method": "starknet_getStateUpdate",
      "params": {
        "block_id": {
          "block_hash": "0x041b10c45dc3f39372f7b9409261cac9d880c5d75a5bb077d028db20b1bd76c4"
        }
      }
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json Success theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
      "block_hash": "0x18ec1a3931bb5a286f801a950e1153bd427d6d3811591cc01e6f074615a1f76",
      "new_root": "0xc95a878188acf408e285027bd5e7674a88529b8c65ef6c1999b3569aea8bc8",
      "old_root": "0x7dd643fa7f254c8932c01558f538292304266c00728eeaf4b32b361b5d0d2dd",
      "state_diff": {
        "storage_diffs": [
          {
            "__truncated": true
          },
          {
            "__truncated": true
          },
          {
            "__truncated": true
          },
          {
            "__truncated": true
          },
          "..."
        ]
      }
    }
  }
  ```
</ResponseExample>
