Parameters
- block_idstringREQUIRED
The hash of the requested block, or number (height) of the requested block, or a block tag (latest, pre_confirmed, or l1_accepted)
Returns
- resultobject
The information about the state update of the requested block. It contains one of the following objects:
- STATE_UPDATEobject
(Optional) The state update object which contains the following fields:
- block_hashstring
The block hash
- old_rootstring
The previous global state root
- new_rootstring
The new global state root
- state_diffobject
The state diff object which contains the following objects:
- storage_entriesarray
The previous global state root
- keystring
The key value
- valuestring
The value
- deprecated_declared_classesarray
The hash of the declared class
- class_hashstring
The hash of the contract code
- addressstring
The address of the contract
- declared_classesarray
The declared class hash and compiled class hash
- class_hashstring
The hash of the declared class
- compiled_class_hashstring
The Cairo assembly hash corresponding to the declared class
- deployed_contractsarray
The contract deployed as part of the state update
- class_hashstring
The hash of the contract code
- addressstring
The address of the contract
- replaced_classesarray
The list of contracts whose class was replaced
- class_hashstring
The new class hash
- contract_addressstring
The address of the contract whose class was replaced
- noncesarray
The updated nonce per contract address
- noncestring
The nonce for the given address at the end of the block
- contract_addressstring
The address of the contract
- PRE_CONFIRMED_STATE_UPDATEobject
(Optional) The pre-confirmed state update object which contains the following fields:
- old_rootstring
The previous global state root
- state_diffobject
The state diff object which contains the following objects:
- storage_entriesarray
The previous global state root
- keystring
The key value
- valuestring
The value
- deprecated_declared_classesarray
The hash of the declared class
- class_hashstring
The hash of the contract code
- addressstring
The address of the contract
- declared_classesarray
The declared class hash and compiled class hash
- class_hashstring
The hash of the declared class
- compiled_class_hashstring
The Cairo assembly hash corresponding to the declared class
- deployed_contractsarray
The contract deployed as part of the state update
- class_hashstring
The hash of the contract code
- addressstring
The address of the contract
- replaced_classesarray
The list of contracts whose class was replaced
- class_hashstring
The new class hash
- contract_addressstring
The address of the contract whose class was replaced
- noncesarray
The updated nonce per contract address
- noncestring
The nonce for the given address at the end of the block
- contract_addressstring
The address of the contract