MCP Ethers Wallet
contractCall
Call a view/pure method on a smart contract (read-only operations)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
abi | Yes | The ABI of the contract as a JSON string | |
args | No | The arguments to pass to the method | |
chainId | No | Optional. The chain ID to use for the call. If provided, will verify it matches the provider's network. | |
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 getSupportedNetworks to get a list of supported networks. |
Input Schema (JSON Schema)
You must be authenticated.
Other Tools
- checkWalletExists
- contractCall
- contractCallView
- contractCallWithEstimate
- contractCallWithOverrides
- contractEvents
- contractSendTransaction
- contractSendTransactionWithEstimate
- contractSendTransactionWithOverrides
- formatEther
- formatUnits
- getBlockDetails
- getBlockNumber
- getContractCode
- getERC20Balance
- getFeeData
- getGasPrice
- getSupportedNetworks
- getTransactionDetails
- getTransactionsByBlock
- getWalletBalance
- getWalletTransactionCount
- lookupAddress
- parseEther
- parseUnits
- queryLogs
- resolveName
- sendRawTransaction
- sendTransaction
- sendTransactionWithOptions
- signMessage