Skip to main content
Glama

resolve_ens

Convert Ethereum Name Service (ENS) domain names into blockchain addresses using the Alchemy MCP Plugin. This tool resolves human-readable ENS names to their corresponding wallet or contract addresses.

Instructions

Resolve an ENS name to an address

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesThe ENS name to resolve
blockTagNoThe block tag to use for resolution

Implementation Reference

  • TypeScript type definition for input parameters of resolve_ens tool.
    type ResolveEnsParams = { name: string; blockTag?: string | number };
  • Validator function to check and type guard ResolveEnsParams.
    const isValidResolveEnsParams = (args: any): args is ResolveEnsParams => { return ( typeof args === "object" && args !== null && typeof args.name === "string" && (args.blockTag === undefined || typeof args.blockTag === "string" || typeof args.blockTag === "number") ); };
  • index.ts:888-905 (registration)
    Tool registration in the ListTools response, defining name, description, and input schema for resolve_ens.
    { name: "resolve_ens", description: "Resolve an ENS name to an address", inputSchema: { type: "object", properties: { name: { type: "string", description: "The ENS name to resolve", }, blockTag: { type: "string", description: "The block tag to use for resolution", }, }, required: ["name"], }, },

Latest Blog Posts

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/itsanishjain/alchemy-sdk-mcp'

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