Estimate Contract Gas
estimate_contract_gasEstimate gas for invoking a contract function on Celo mainnet with a caller-supplied ABI fragment. Prefer this before execute_contract_function. Does not broadcast.
§ Inputs
| Name | Type | Description |
|---|---|---|
contract_addressRequired | string | contract address |
function_nameRequired | string | function name |
abiRequired | array | Contract ABI as a JSON array |
function_args | array | function args |
value | string | value |
from | string | Wallet on Celo mainnet. Omit to use the connected wallet or MCP CELO_PRIVATE_KEY signer. |
from_address | string | Wallet on Celo mainnet. Omit to use the connected wallet or MCP CELO_PRIVATE_KEY signer. |
§ 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.