Skip to main content
Glama

ENS resolver API

Á [MCP Server](https://ens-resolver.api.klymax402.com/mcp) x402 License: MIT

将 ENS 名称解析为以太坊地址,也支持反向解析——同时返回头像 URL。为 AI 代理提供身份解析。通过 x402 按调用计费(Base L2 上的 USDC),无需 API 密钥、无需注册、无速率限制。

属于 klymax0 市场的一部分——100 个面向 AI 代理的 x402 微支付 API,只需一个钱包,USDC on Base L2。

快速入门 —— MCP

在 MCP 客户端配置(Claude Desktop,Cursor,Elisa,…)中加入以下内容:

{
  "mcpServers": {
    "ens-resolver": {
      "url": "https://ens-resolver.api.klymax402.com/mcp"
    }
  }
}

Related MCP server: Tilde x402 MCP Server

快速入门 —— HTTP(参考)

curl -X POST "https://ens-resolver.api.klymax402.com/api/resolve" \
  -H "Content-Type: application/json" \
  -d '{}'
# -> 402 Payment Required, with an x402 payment challenge in the response body

所有支持, x402 的客户端(ʻx402/fetch, `x402-agent-tools, ATXP)都会自动处理 402 -> 签 -> 重试 请求流程。

工具

工具

方法

路径

价格

描述

crypto_resolve_ens

POST

/API/resolve

$0.005

将 ENS 名称解析到 X 地址,或将地址反向解析为 ENS 名称

crypto_resolve_ens

当你需要将ENS名称解析为E地址,或将地址反向解析为ENS名称时使用此工具。返回 JSON 形式的解析数据。

参数

字段

类型

必须

描述

name

string

待解析的 ENS 名称(例如vitalik.eth)

address

string

用于反向解析的以太坊地址(例如 0xd8dABF2...)

返回值

  • address —— 解析后的以太坊地址(0x…)

  • ensName —— ENS 名称

  • avatar ——(如有)与 ENS 关联的头像地址

  • direction —— "名称/地址" 的方向 ["forward"(name → address)or "reverse"(address → name)]

{
  "mcpServers": {
    "ens-resolver": {
      "url": "https://ens-resolver.api.klymax402.com/mcp"
    }
  }
}

示例响应:

{"address":"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045","ensName":"vitalik.eth","avatar":"https://...","resolvedDirection":"forward"}

何时使用:需要向一个 ENS 名称发送资产时,确保地址正确的关键。也适合身份解析和人类识别的钱包查 询。

不适用:钱包余额(查询 wallet_get_portfolio)、代币安全(见 token_check_safety)、NFT元数据(见 crypto_get_nft_metadata

示例代理提示词

"将 ENS 名称解析为以太坊地址,或将地址反向解析为 ENS 名称"

支付

  • 协议:x402)——HTTP 原生按调用计费,不需注册和 API 密钥

  • 网络:Base L2( eip155:8453

  • 资产:USDC

  • 调解器:Coinbase CDP(primary)、PayAI(fallback)

  • 也可通过 ATXP 访问(OAuth 包装的 x402,RFC 9728 保护资源元数据)

属于 klymax402

100 x402 个面向 Agent 微支付 API —— 一个钱包、USDC on Base、零注册。

License

MIT

A
license - permissive license
Not graded
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • Pay-per-use weather, environment, finance, and on-chain intelligence tools for AI agents via x402.

  • Pay-per-call x402 gateway: agent tools, OpenAI-compatible LLM, market data, RPC, security audits.

  • Agent x402 Paywall MCP — Coinbase HTTP 402 protocol + on-chain settlement. Agents pay per-call

View all MCP Connectors

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/Br0ski777/ens-resolver-x402'

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