Simulate any tx (read-only)
blazar_simulate_txDry-run any Polygon tx with eth_call + estimateGas from from (POL balance overridden, token balances real). Returns ok, gas, or an error code with a hint. Use for txs from other sources; builds already simulate.
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": {
"from": "<from>",
"data": "<data>"
},
"name": "blazar_simulate_tx"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Omit for contract creation. | |
| data | Yes | ||
| from | Yes | ||
| value | No | Wei, default 0. |