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
Name | Required | Description | Default |
---|---|---|---|
abi | Yes | The ABI of the contract function to call, in JSON format | |
args | No | Optional. The arguments to pass to the contract function | |
chainId | No | 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. | |
contractAddress | Yes | The address of the contract to call | |
method | Yes | The name of the method to call | |
provider | No | 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. |