Simulate a read-only call
eth_callSimulate contract calls without broadcasting or using a key. Test calldata and value combinations to see if they revert or succeed.
Instructions
Simulate a call with eth_call and report whether it returned or reverted. Nothing is broadcast and no key is used. Useful for probing which calldata and value combinations a contract accepts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| data | No | Calldata hex. | 0x |
| from | No | ||
| block | No | ||
| chain | No | Chain name. One of: ethereum, sepolia, holesky, polygon, polygon-amoy, arbitrum, optimism, base, base-sepolia, bsc, avalanche, gnosis, scroll, linea | ethereum |
| value | No | Wei, as hex or decimal. | |
| rpc_url | No | Custom JSON-RPC URL. Overrides `chain`; use for private or unlisted networks. |