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)
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 |