MCP Ethers Wallet

contractSendTransactionWithOverrides

Call a method on a smart contract and send a transaction with custom parameters

Input Schema

NameRequiredDescriptionDefault
abiYesThe ABI of the contract as a JSON string
contractAddressYesThe address of the smart contract
gasLimitNoOptional. The gas limit for the transaction
gasPriceNoOptional. A manual gas price for legacy transactions
methodYesThe method name to invoke
methodArgsNoAn array of arguments to pass to the method
nonceNoOptional. A manual nonce for the transaction
providerNoOptional. Either a network name or custom RPC URL. Use getSupportedNetworks to get a list of supported networks.
valueNoOptional. The amount of ETH to send with the call

Input Schema (JSON Schema)

{ "properties": { "abi": { "description": "The ABI of the contract as a JSON string", "type": "string" }, "contractAddress": { "description": "The address of the smart contract", "type": "string" }, "gasLimit": { "description": "Optional. The gas limit for the transaction", "type": "string" }, "gasPrice": { "description": "Optional. A manual gas price for legacy transactions", "type": "string" }, "method": { "description": "The method name to invoke", "type": "string" }, "methodArgs": { "description": "An array of arguments to pass to the method", "items": { "type": [ "string", "number", "boolean", "object" ] }, "type": "array" }, "nonce": { "description": "Optional. A manual nonce for the transaction", "type": "number" }, "provider": { "description": "Optional. Either a network name or custom RPC URL. Use getSupportedNetworks to get a list of supported networks.", "type": "string" }, "value": { "description": "Optional. The amount of ETH to send with the call", "type": "string" } }, "required": [ "contractAddress", "abi", "method" ], "type": "object" }