---
title: "Resolve an ENS name or a Basename (*.eth, *.base.eth) to its address and avatar, or an address to its primary name on Ethereum and on Base. Reverse answers are forward-verified, so a name is only returned if it resolves back to the address. Read-only, no key."
method: POST
path: "/v1/tools/ens-resolve"
---

# Resolve an ENS name or a Basename (\*.eth, \*.base.eth) to its address and avatar, or an address to its primary name on Ethereum and on Base. Reverse answers are forward-verified, so a name is only returned if it resolves back to the address. Read-only, no key.

`POST /v1/tools/ens-resolve`

## Request

- Base URL: `https://agents.dexl.io`
- URL: `https://agents.dexl.io/v1/tools/ens-resolve`
- Auth: API key in header `X-Payment`

Paid per call via x402. Send without payment to get the exact price in the 402.

## Request body

- object: Send exactly one of name or address.
  - `name` string: A name to resolve, e.g. vitalik.eth or jesse.base.eth.
  - `address` string: An address to find the primary name of (0x...).

## Response `200`

The tool output

## Other responses

- `400`: The input did not match the schema
- `402`: Payment required

---

[API](https://skmtc.dev/dexl/apis/dexl-agents.md) · [All operations](https://skmtc.dev/dexl/apis/dexl-agents/llms.txt) · [OpenAPI document](https://skmtc.dev/dexl/apis/dexl-agents/revisions/e3692765c3f7?raw)
