Celina/Tools/Contract/estimate-contract-gas
readContractStdio only

Estimate Contract Gas

estimate_contract_gas

Estimate 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

NameTypeDescription
contract_addressRequiredstringcontract address
function_nameRequiredstringfunction name
abiRequiredarrayContract ABI as a JSON array
function_argsarrayfunction args
valuestringvalue
fromstringWallet on Celo mainnet. Omit to use the connected wallet or MCP CELO_PRIVATE_KEY signer.
from_addressstringWallet 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.