MCP Ethers Wallet

contractCallView

Query smart contract view/pure methods to retrieve data without altering the blockchain. Specify the contract address, ABI, method, and optionally chain ID or provider for read-only operations.

Instructions

Call a view/pure method on a smart contract (read-only operations)

Input Schema

NameRequiredDescriptionDefault
abiYesThe ABI of the contract as a JSON string
argsNoThe arguments to pass to the method
chainIdNoOptional. The chain ID to use for the call. If provided, will verify it matches the provider's network.
contractAddressYesThe address of the contract to call
methodYesThe name of the method to call (must be a view/pure function)
providerNoOptional. Either a network name or custom RPC URL. Use getSupportedNetworks to get a list of supported networks.

Input Schema (JSON Schema)

{ "properties": { "abi": { "description": "The ABI of the contract as a JSON string", "type": "string" }, "args": { "description": "The arguments to pass to the method", "items": { "type": "any" }, "type": "array" }, "chainId": { "description": "Optional. The chain ID to use for the call. If provided, will verify it matches the provider's network.", "type": "number" }, "contractAddress": { "description": "The address of the contract to call", "type": "string" }, "method": { "description": "The name of the method to call (must be a view/pure function)", "type": "string" }, "provider": { "description": "Optional. Either a network name or custom RPC URL. Use getSupportedNetworks to get a list of supported networks.", "type": "string" } }, "required": [ "contractAddress", "abi", "method" ], "type": "object" }
ID: j75jbdup5m