Deprecation Notice: This method was removed in pathfinder v0.23.0 and now returns -32601 Method not found. Use starknet_getStorageProof instead.
Parameters
- block_idstringREQUIRED
The hash of the requested block, the block number (height) of the requested block, or a block tag (latest, pre_confirmed, or l1_accepted)
- contract_addressstringREQUIRED
The address of the contract to read from
- keyarrayREQUIRED
The storage element addresses to gather proofs for
Returns
- resultobject
The result object which can be one of the following object:
- state_commitmentstring
(Optional) The commitment for the state of a Starknet block. Before Starknet v0.11.0 this was equivalent to storage commitment, which is the hash of the first node in the contract proof
- class_commitmentstring
(Optional) The root of the class commitment tree
- contract_proofobject
The proof of the contract state hash. It contains one of the following object:
- binaryobject
The binary node object which contains the following fields:
- leftstring
The left child's hash
- rightstring
The right child's hash
- edgeobject
The edge object which contains the following fields:
- childstring
The child's hash
- pathobject
The path object which contains the following fields:
- valuestring
The path of this edge node
- leninteger
The bit length of this path
- contract_dataobject
(Optional) The contract data object which is only present if the contract exists
- class_hashstring
The hash of the contract's class
- noncestring
The contract's nonce
- rootstring
The contract's storage state root hash
- contract_state_hash_versionstring
The state hash version used to calculate the state hash
- storage_proofsarray
(Optional) It contains the requested storage proofs (in order of request). It contains one of the following object:
- binaryobject
The binary node object which contains the following fields:
- leftstring
The left child's hash
- rightstring
The right child's hash
- edgeobject
The edge object which contains the following fields:
- childstring
The child's hash
- pathobject
The path object which contains the following fields:
- valuestring
The path of this edge node
- leninteger
The bit length of this path