get_contract_state
Read raw state entries from a NEAR smart contract. Filter by key prefix to access specific data.
Instructions
Reads raw contract state entries, optionally filtered by key prefix
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"contract_id": "<contract_id>"
},
"name": "get_contract_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | NEAR network to query (default: mainnet) | |
| key_prefix | No | Base64-encoded key prefix to filter state (optional) | |
| contract_id | Yes | The NEAR account ID of the contract |