Parameters
chainId
string
default:"324"
required
Unique identifier for a blockchain network.
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"zks_getProof"
required
JSON-RPC method name.
Positional parameters for zks_getProof:params[0]: The account address to fetch storage proofs for.params[1]: Vector of storage keys in the account.params[2]: The L1 batch number specifying the point in time for the storage proof.
Returns
The JSON-RPC result.
The account address for which the proof was fetched.
An array of proofs for each requested key.
The requested storage key.
The value stored at the key.
The index of the entry in the Merkle tree.
Merkle proof path from root to the leaf (excluding root).
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=324 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "zks_getProof",
"params": [
"0x0000000000000000000000000000000000008003",
[
"0x8b65c0cf1012ea9f393197eb24619fd814379b298b238285649e14f936a5eb12"
],
354895
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"address": "0x0000000000000000000000000000000000008003",
"storageProof": [
{
"key": "0x8b65c0cf1012ea9f393197eb24619fd814379b298b238285649e14f936a5eb12",
"value": "0x0000000000000000000000000000000000000000000000000000000000000060",
"index": 27900957,
"proof": [
"..."
]
}
]
}
}