invoke_contract
Invoke a read-only method on a Neo N3 smart contract to retrieve data without transaction fees or signing.
Instructions
Run a read-only smart contract invocation without signing or broadcasting a transaction.
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": {
"operation": "<operation>"
},
"name": "invoke_contract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Method arguments as an array of values | |
| network | No | Network to query | |
| contract | No | Contract reference: script hash, Neo address, exact N3Index name, or a previously discovered manifest name | |
| operation | Yes | Contract method name to invoke | |
| nameOrHash | No | Contract name or script hash (alias for contract) | |
| scriptHash | No | Contract script hash (40 hex chars, optional 0x prefix) | |
| contractName | No | Exact contract name resolved through N3Index or a live manifest |