cast_call
Perform read-only calls to deployed contracts on zkSync without spending gas or changing state.
Instructions
Read-only call to a deployed contract — no gas spent, no state change (cast call)
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": {
"to": "<to>",
"signature": "<signature>",
"rpcUrl": "<rpcUrl>"
},
"name": "cast_call"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Address of the contract to call | |
| signature | Yes | Function signature with return type, e.g. "balanceOf(address)(uint256)" or "name()(string)" | |
| args | No | Function arguments in order, e.g. ['0x1234...'] | |
| rpcUrl | Yes | RPC URL of the zkSync network to call against | |
| blockTag | No | Block to query at, e.g. "latest", "pending", or a block number |