resolve_name
Resolve human-readable names like 'vitalik.eth' or 'bonfida.sol' to their blockchain addresses across ENS and Bonfida SNS registries.
Instructions
Cross-chain name resolution. Pass a name like 'vitalik.eth' or 'bonfida.sol' and get back the resolved address(es) across supported registries. Currently supports ENS (.eth) and Bonfida SNS (.sol). Cached 1h server-side. $0.001 USDC.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Human-readable name, e.g. 'vitalik.eth' or 'bonfida.sol'. |
Implementation Reference
- index.js:135-145 (schema)The input schema for the 'resolve_name' tool. Defines the required 'name' string parameter (e.g. 'vitalik.eth' or 'bonfida.sol').
{ name: "resolve_name", description: "Cross-chain name resolution. Pass a name like 'vitalik.eth' or 'bonfida.sol' and get back the resolved address(es) across supported registries. Currently supports ENS (.eth) and Bonfida SNS (.sol). Cached 1h server-side. $0.001 USDC.", inputSchema: { type: "object", properties: { name: { type: "string", description: "Human-readable name, e.g. 'vitalik.eth' or 'bonfida.sol'." }, }, required: ["name"], }, - index.js:251-255 (handler)The handler logic for 'resolve_name' in the buildRequest function. Constructs a GET request to the /v1/resolve/name API endpoint with the provided name as a query parameter.
case "resolve_name": return { url: `${BASE_URL}/v1/resolve/name?${new URLSearchParams({ name: args.name })}`, opts: { method: "GET" }, }; - index.js:202-204 (registration)Registration of all tools via ListToolsRequestSchema handler. The TOOLS array (including resolve_name) is returned to the MCP client.
server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: TOOLS, }));