starknet_getStateUpdate

Get the information about the result of executing the requested block

Parameters:

BLOCK_PARAM - Expected one of block_number, block_hash, latest, pending

Returns:

The information about the state update of the requested block

Example:

// Request
curl  https://starknet.blockpi.network/v1/rpc/your-rpc-key -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"starknet_getStateUpdate","params":["latest"],"id":0}'

// Result
{
    "id": 0,
    "jsonrpc": "2.0",
    "result": {
        "block_hash": "0x7a7be174b3ea3e3f77085bccdd5de3adf5346a57fd09435bdac071fa8b154dd",
        "new_root": "0x1c09e179ad75a8fa679fbe067f382a87dc8fa5abdef90a6e508e4bd6d3aa0a0",
        "old_root": "0x1f8106a59254bc7e44d1b25ba1d40ea232f6007c2f2bda3e43d8a1b41213227",
        "state_diff": {
            "declared_classes": [],
            "deployed_contracts": [