Skip to main content
Glama

agentek-eth

by NaniDAO

getSmartContract

Retrieve smart contract source code, ABI, and metadata by providing the contract address and chain ID for blockchain networks like Ethereum, Polygon, Optimism, and more.

Instructions

Retrieve the source code, ABI and metadata a contract.

Input Schema

NameRequiredDescriptionDefault
addressYes
chainYesChain ID for the blockchain network. Supports: 1, 137, 42161, 10, and 8453

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "address": { "pattern": "^0x[a-fA-F0-9]{40}$", "type": "string" }, "chain": { "anyOf": [ { "enum": [ "1", "137", "42161", "10", "8453" ], "type": "string" }, { "allOf": [ { "type": "number" }, { "enum": [ "1", "137", "42161", "10", "8453" ], "type": "string" } ] } ], "description": "Chain ID for the blockchain network. Supports: 1, 137, 42161, 10, and 8453" } }, "required": [ "chain", "address" ], "type": "object" }

You must be authenticated.

Other Tools from agentek-eth

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/NaniDAO/agentek'

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