midl_estimate_gas
Estimate the gas required to execute an EVM transaction on the MIDL blockchain by providing the recipient address and optional value or calldata.
Instructions
Estimate gas required for an EVM transaction before sending.
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>"
},
"name": "midl_estimate_gas"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target contract or recipient address | |
| value | No | Amount of BTC to send (e.g., "0.1") | |
| data | No | Transaction calldata (hex) |