Skip to main content
Glama

MCP Ethers Wallet

contractCall

Interact with Ethereum smart contracts by specifying the contract address, ABI, method, and optional arguments. Execute functions and query data directly from the blockchain using the MCP Ethers Wallet.

Input Schema

NameRequiredDescriptionDefault
abiYesThe ABI of the contract function to call, in JSON format
argsNoOptional. The arguments to pass to the contract function
chainIdNoOptional. The chain ID to use. If provided with a named network and they don't match, the RPC's chain ID will be used.
contractAddressYesThe address of the contract to call
methodYesThe name of the method to call
providerNoOptional. Either a network name or custom RPC URL. Use getAllNetworks to see available networks and their details, or getNetwork to get info about a specific network. You can use any network name returned by these tools as a provider value.

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "abi": { "description": "The ABI of the contract function to call, in JSON format", "type": "string" }, "args": { "description": "Optional. The arguments to pass to the contract function", "type": "array" }, "chainId": { "description": "Optional. The chain ID to use. If provided with a named network and they don't match, the RPC's chain ID will be used.", "type": "number" }, "contractAddress": { "description": "The address of the contract to call", "type": "string" }, "method": { "description": "The name of the method to call", "type": "string" }, "provider": { "description": "Optional. Either a network name or custom RPC URL. Use getAllNetworks to see available networks and their details, or getNetwork to get info about a specific network. You can use any network name returned by these tools as a provider value.", "type": "string" } }, "required": [ "contractAddress", "abi", "method" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/crazyrabbitLTC/mcp-ethers-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server