starknet_getStorageProof

Returns Merkle inclusion proofs for selected elements of the Starknet state at a given block

Path parameters

apiKeystringRequiredDefaults to docs-demo

Request

This endpoint expects an object.
block_idobject or enumRequired

The hash of the requested block, or number (height) of the requested block, or a block tag

class_hasheslist of stringsOptional
Class hashes to prove inclusion in the classes trie
contract_addresseslist of stringsOptional
Contract addresses to prove inclusion in the contracts trie
contracts_storage_keyslist of objectsOptional
Storage keys to prove for specific contracts

Response

Inclusion proofs for requested state elements at the given block
classes_prooflist of objects or null

Proofs for requested class hashes (if any)

contracts_prooflist of objects or null

Proofs for requested contract addresses (if any)

storage_proofslist of objects or null

Proofs for requested (contract, storage_key) pairs (if any)