Celina/Tools/Contract/estimate-contract-gas

Estimate Contract Gas

estimate_contract_gas

Estimate gas for invoking a contract function on Celo mainnet with a caller-supplied ABI fragment. Does not broadcast.

§ Inputs

NameTypeDescription
fromRequired0x… addressSender address.
contractRequired0x… addressContract address.
abiRequiredJSON ABI fragmentFunction ABI as JSON.
functionRequiredstringFunction name.
argsany[]Function arguments in order.
valuestring (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.