view_contract_method
Call a read-only method on NEAR smart contracts without gas. Retrieve on-chain data by providing contract ID, method name, and optional arguments.
Instructions
Call a view (read-only) method on a NEAR smart contract. No gas required.
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>",
"method_name": "<method_name>"
},
"name": "view_contract_method"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Arguments to pass (JSON object) | |
| contract_id | Yes | Contract account ID | |
| method_name | Yes | View method name to call |