readContract
Estimate Contract Gas
estimate_contract_gasEstimate gas for invoking a contract function on Celo mainnet with a caller-supplied ABI fragment. Does not broadcast.
§ Inputs
| Name | Type | Description |
|---|---|---|
fromRequired | 0x… address | Sender address. |
contractRequired | 0x… address | Contract address. |
abiRequired | JSON ABI fragment | Function ABI as JSON. |
functionRequired | string | Function name. |
args | any[] | Function arguments in order. |
value | string (wei) | Native CELO value to attach. Defaults to 0. |
§ Returns
{ gasLimit, gasPrice, estimatedFee }§ Try saying
- Estimate gas to mint() on contract 0x… from 0x…
Use this tool
Once Celina is wired into your MCP client, just ask in plain language. The LLM picks estimate_contract_gas automatically.