getContractCode
Retrieve smart contract bytecode and ABI details from an Ethereum address. Specify the contract address, network provider, or chain ID for accurate queries using the MCP Ethers Wallet server.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
address | Yes | The contract's address | |
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. | |
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. |