zks_getProof
Returns Merkle proofs for one or more storage values for the specified account along with a Merkle proof of their authenticity. This allows you to verify that the values have not been tampered with.
Parameters
address: [Required] The account to fetch storage values and proofs for.keys: [Required] Vector of storage keys in the account.l1BatchNumber: [Required] Number of the L1 batch specifying the point in time at which the requested values are returned.
Response
address: The account address.storageProof: Proof for each of the requested keys in the order at which they were requested:key- The requested storage key.value- The storage value.index- Index of the tree entry.proof- Sequence of zero or more 32-byte hashes that form a Merkle path for the key in the Merkle tree. Hashes are listed using the root-to-leaf ordering. The root hash is excluded; it is published on L1 as a part of L1 batch commit data.
Example
Replace <YOUR-API-KEY> with an API key from your MetaMask Developer dashboard.