ENS resolve

$0.001 per call · USDC via x402 · GET /api/ens-resolve · Cached 1h

Resolve an ENS name (e.g. vitalik.eth) to its Ethereum address - so an agent can turn a human-readable recipient into a payable address. Send GET /api/ens-resolve with the required field name and pay $0.001 per call over x402 or MPP (there is no free tier). It returns a JSON object with name, address and found.

Read-only on Ethereum mainnet. ?name=vitalik.eth

Category: Payments & x402 · Tags: ens resolve ethereum name address lookup · Also found as: ens

TRY IN PLAYGROUND →

Parameters

NameTypeRequiredDescription
namestringyesan ENS name, e.g. name.eth

Example request

curl -i "https://agent402.tools/api/ens-resolve?name=vitalik.eth"

Without payment this returns HTTP 402 Payment Required with the exact price for ens-resolve; any x402 v2 or MPP client pays it and retries.

Example response

{
  "name": "vitalik.eth",
  "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
  "found": true
}
FieldTypeAlways presentIn the example
namestringyesvitalik.eth
addressstringyes0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045
foundbooleanyestrue

From an MCP client

catalog.call {
  "slug": "ens-resolve",
  "params": {
    "name": "vitalik.eth"
  }
}

The hosted connector at https://agent402.tools/mcp needs a payment for ens-resolve; the stdio package pays it from a wallet or from AGENT402_CREDITS_KEY. Local install: npx -y agent402-mcp.

Errors and behavior

Paid call (JavaScript agent)

import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client();
client.setSpendControls?.(false); // keep your own spending ceiling in code
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch("https://agent402.tools/api/ens-resolve?name=vitalik.eth");

Related tools

Coin search

$0.005 · GET /api/coin-search

Resolve a name or ticker to coin ids: full-text search returning matching coins (id, symbol, name, market cap rank, orde…

B20 activation check

$0.002 · GET /api/b20-activation-check

Is B20 live on Base mainnet? Queries the Activation Registry precompile for base.b20_asset and base.b20_stablecoin (or a…

B20 feature id

FREE w/ compute · or $0.001 · POST /api/b20-feature-id

Pure-CPU helper: turn a B20 feature string (e.g. base.b20_asset) into its bytes32 feature id and ready-to-send isActivat…

B20 payment memos

$0.005 · GET /api/b20-memos

Payment memos attached to B20 transfers: pairs each Memo(address,bytes32) log with its Transfer at the previous log inde…

New B20 tokens

$0.005 · GET /api/b20-new-tokens

Recently deployed B20 tokens on Base: scans the factory's B20Created logs over a block window, locates each new token by…

B20 token info

$0.005 · GET /api/b20-token-info

ERC-20 metadata plus B20 signals for any Base address: name, symbol, decimals, total supply, best-effort paused/cap, byt…