# getContractCode

A read tool on the MCP Ethers Wallet MCP server.

Agent View of the PolicyLayer registry record for `getContractCode`. HTML page: https://policylayer.com/tools/crazyrabbitltc-mcp-ethers-server/getcontractcode

## Facts

- Tool: `getContractCode`
- Server: MCP Ethers Wallet (`crazyrabbitltc/mcp-ethers-server`) — https://policylayer.com/tools/crazyrabbitltc-mcp-ethers-server.md
- Homepage: https://github.com/crazyrabbitLTC/mcp-ethers-server
- Risk category: Read (Low risk)
- Registry record: grade F, identity unverified
- Server rate-limited: no
- Parameters: 0
- Recommended policy verdict: Allowed

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "getContractCode",
    "arguments": {}
  }
}
```

## Why getContractCode is rated Low

Retrieving contract code is a read-only operation that queries blockchain state without modifying data, executing arbitrary code, or producing side effects. It mirrors blockchain explorers' 'view contract code' functionality. While the description is empty (reducing confidence slightly), the tool name and server context make the read classification clear.

From the tool's own definition: "Tool name 'getContractCode' indicates retrieval of smart contract bytecode or source code from the blockchain."

## Use case

AI agents call getContractCode to retrieve information from MCP Ethers Wallet without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.

## Recommended policy (PolicyLayer)

Verdict: **Allowed**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches MCP Ethers Wallet:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "getContractCode": {}
  }
}
```

## Other tools on MCP Ethers Wallet (68)

- `contractCall` — Execute — https://policylayer.com/tools/crazyrabbitltc-mcp-ethers-server/contractcall.md
- `prepareContractTransaction` — Execute — https://policylayer.com/tools/crazyrabbitltc-mcp-ethers-server/preparecontracttransaction.md
- `prepareERC1155SetApprovalForAll` — Execute — https://policylayer.com/tools/crazyrabbitltc-mcp-ethers-server/prepareerc1155setapprovalforall.md
- `prepareERC721SetApprovalForAll` — Execute — https://policylayer.com/tools/crazyrabbitltc-mcp-ethers-server/prepareerc721setapprovalforall.md
- `signMessage` — Execute — https://policylayer.com/tools/crazyrabbitltc-mcp-ethers-server/signmessage.md
- `approveERC20` — Financial — https://policylayer.com/tools/crazyrabbitltc-mcp-ethers-server/approveerc20.md
- `approveNFT` — Financial — https://policylayer.com/tools/crazyrabbitltc-mcp-ethers-server/approvenft.md
- `ethSign` — Financial — https://policylayer.com/tools/crazyrabbitltc-mcp-ethers-server/ethsign.md
- `prepareERC1155BatchTransfer` — Financial — https://policylayer.com/tools/crazyrabbitltc-mcp-ethers-server/prepareerc1155batchtransfer.md
- `prepareERC20Approval` — Financial — https://policylayer.com/tools/crazyrabbitltc-mcp-ethers-server/prepareerc20approval.md
- `prepareTransaction` — Financial — https://policylayer.com/tools/crazyrabbitltc-mcp-ethers-server/preparetransaction.md
- `safeBatchTransferERC1155` — Financial — https://policylayer.com/tools/crazyrabbitltc-mcp-ethers-server/safebatchtransfererc1155.md
- `safeTransferERC1155` — Financial — https://policylayer.com/tools/crazyrabbitltc-mcp-ethers-server/safetransfererc1155.md
- `safeTransferERC721` — Financial — https://policylayer.com/tools/crazyrabbitltc-mcp-ethers-server/safetransfererc721.md
- `sendSignedTransaction` — Financial — https://policylayer.com/tools/crazyrabbitltc-mcp-ethers-server/sendsignedtransaction.md
- `sendTransaction` — Financial — https://policylayer.com/tools/crazyrabbitltc-mcp-ethers-server/sendtransaction.md
- `sendTransactionWithOptions` — Financial — https://policylayer.com/tools/crazyrabbitltc-mcp-ethers-server/sendtransactionwithoptions.md
- `transferERC20` — Financial — https://policylayer.com/tools/crazyrabbitltc-mcp-ethers-server/transfererc20.md
- `transferERC721` — Financial — https://policylayer.com/tools/crazyrabbitltc-mcp-ethers-server/transfererc721.md
- `transferFromERC20` — Financial — https://policylayer.com/tools/crazyrabbitltc-mcp-ethers-server/transferfromerc20.md
- `transferNFT` — Financial — https://policylayer.com/tools/crazyrabbitltc-mcp-ethers-server/transfernft.md
- `loadWallet` — Other — https://policylayer.com/tools/crazyrabbitltc-mcp-ethers-server/loadwallet.md
- `checkWalletExists` — Read — https://policylayer.com/tools/crazyrabbitltc-mcp-ethers-server/checkwalletexists.md
- `erc1155_balanceOf` — Read — https://policylayer.com/tools/crazyrabbitltc-mcp-ethers-server/erc1155-balanceof.md
- `erc1155_balanceOfBatch` — Read — https://policylayer.com/tools/crazyrabbitltc-mcp-ethers-server/erc1155-balanceofbatch.md
- `erc1155_uri` — Read — https://policylayer.com/tools/crazyrabbitltc-mcp-ethers-server/erc1155-uri.md
- `erc20_balanceOf` — Read — https://policylayer.com/tools/crazyrabbitltc-mcp-ethers-server/erc20-balanceof.md
- `erc20_getTokenInfo` — Read — https://policylayer.com/tools/crazyrabbitltc-mcp-ethers-server/erc20-gettokeninfo.md
- `erc721_balanceOf` — Read — https://policylayer.com/tools/crazyrabbitltc-mcp-ethers-server/erc721-balanceof.md
- `erc721_tokenURI` — Read — https://policylayer.com/tools/crazyrabbitltc-mcp-ethers-server/erc721-tokenuri.md
- …and 38 more: https://policylayer.com/tools/crazyrabbitltc-mcp-ethers-server.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=crazyrabbitltc-mcp-ethers-server · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/crazyrabbitltc-mcp-ethers-server
