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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "resolve_ens"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The ENS name to resolve | |
| blockTag | No | The block tag to use for resolution |
Implementation Reference
- index.ts:90-90 (schema)TypeScript type definition for input parameters of resolve_ens tool.
type ResolveEnsParams = { name: string; blockTag?: string | number }; - index.ts:321-330 (helper)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"], }, },