curl --request POST \
--url https://rpc.mainnet.near.org/EXPERIMENTAL_view_state \
--header 'Content-Type: application/json' \
--data '
{
"id": "<string>",
"jsonrpc": "<string>",
"method": "EXPERIMENTAL_view_state",
"params": {
"block_id": 1,
"account_id": "<string>",
"prefix_base64": "<string>",
"include_proof": false
}
}
'{
"result": {
"block_hash": "<string>",
"block_height": 1,
"values": [
{
"key": "<string>",
"value": "<string>"
}
],
"proof": [
"<string>"
]
},
"id": "<string>",
"jsonrpc": "<string>"
}Returns the state (key-value pairs) of a contract based on the key prefix.
curl --request POST \
--url https://rpc.mainnet.near.org/EXPERIMENTAL_view_state \
--header 'Content-Type: application/json' \
--data '
{
"id": "<string>",
"jsonrpc": "<string>",
"method": "EXPERIMENTAL_view_state",
"params": {
"block_id": 1,
"account_id": "<string>",
"prefix_base64": "<string>",
"include_proof": false
}
}
'{
"result": {
"block_hash": "<string>",
"block_height": 1,
"values": [
{
"key": "<string>",
"value": "<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.
Was this page helpful?