Skip to main content
POST
/
EXPERIMENTAL_view_state
cURL
curl --request POST \
  --url https://api.example.com/EXPERIMENTAL_view_state \
  --header 'Content-Type: application/json' \
  --data '
{
  "params": {
    "block_id": 1,
    "account_id": "<string>",
    "prefix_base64": "<string>",
    "after_key_base64": "<string>",
    "include_proof": false,
    "limit": null
  },
  "id": "dontcare",
  "jsonrpc": "2.0"
}
'
{
  "result": {
    "block_hash": "<string>",
    "block_height": 1,
    "values": [
      {
        "key": "<string>",
        "value": "<string>"
      }
    ],
    "last_key": "<string>",
    "proof": [
      "<string>"
    ]
  },
  "id": "<string>",
  "jsonrpc": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.near.org/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json
method
enum<string>
required
Available options:
EXPERIMENTAL_view_state
params
RpcViewStateRequest · object
required
id
string
default:dontcare

JSON-RPC request id. Auto-populated; can be any string.

jsonrpc
enum<string>
default:2.0

JSON-RPC protocol version. Always 2.0.

Available options:
2.0

Response

200 - application/json
result
object
required

Resulting state values for a view state query request

id
string
required
jsonrpc
string
required