Execute Contract Function
execute_contract_functionCall a state-changing function on any Celo mainnet contract using a caller-supplied ABI fragment and positional args (like viem). Optional value is wei as a decimal string. Prefer estimate_contract_gas first. Requires CELO_PRIVATE_KEY in your MCP client env (stdio only).
§ 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 |
§ Returns
{ network, hash, status, from, contractAddress, functionName }§ Try saying
- Call approve(spender, 0) on USDm with the ERC-20 ABI.
- Execute mint() on contract 0x… with ABI JSON and args.
Use this tool
Once Celina is wired into your MCP client, just ask in plain language. The LLM picks execute_contract_function automatically.