Skip to main content
Glama

Ethereum RPC MCP Server

by 0xKoda

eth_getCode

Retrieve smart contract or account code from an Ethereum address using specific block parameters. Designed for querying blockchain data via Ethereum RPC MCP Server.

Instructions

Retrieves the code at a given Ethereum address

Input Schema

NameRequiredDescriptionDefault
addressYesThe Ethereum address to get code from
blockParameterNoBlock parameter (default: "latest")latest

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "address": { "description": "The Ethereum address to get code from", "pattern": "^0x[a-fA-F0-9]{40}$", "type": "string" }, "blockParameter": { "default": "latest", "description": "Block parameter (default: \"latest\")", "type": "string" } }, "required": [ "address" ], "type": "object" }
Install Server

Other Tools from Ethereum RPC MCP Server

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/0xKoda/eth-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server