Skip to main content

Parameters

chainId
string
default:"2741"
required
Unique identifier for a blockchain network.
id
number
default:1
required
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.
params
object
required
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

result
object
The JSON-RPC result.
curl --request POST \
  --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=2741 \
  --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": [
          "..."
        ]
      }
    ]
  }
}