ENS reverse lookup: turning an address into its .eth name

An ENS reverse lookup reads the primary name an address has set for itself, through the reverse record under addr.reverse on Ethereum. Anyone can set any name there, so a correct lookup then resolves that name forward and only accepts it if it points back to the same address; ethers.js lookupAddress does this for you. Our ENS Name Lookup API returns the verified name, the claimed name and a verified flag, plus avatar and links, for $0.003 per call.

Try it free ENS Lookup API — .eth name to address and back, $0.003 · $0.003 / call

How it works

Skipping step 4 lets anyone make their wallet show up as a well-known name in your app.

  1. Take the address in lower case without 0x and add .addr.reverse to it, which gives the reverse name.
  2. Ask the ENS registry which resolver handles that node, then ask the resolver for name().
  3. Resolve the returned name forward to an address.
  4. Accept it only if that address equals the one you started with. Otherwise the reverse record is a claim, not a primary name.

In code, for free

For a one-off check by hand, the ENS app at app.ens.domains shows the primary name and records of any address.

// ethers v6: returns null if the name doesn't resolve back to the address
import { JsonRpcProvider } from "ethers";
const provider = new JsonRpcProvider("https://ethereum-rpc.publicnode.com");
const name = await provider.lookupAddress("0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045");

// web3.py has an ENS module that does the same from Python

The API version

Send an address and you get name (only if verified), claimed_name, verified, and for verified names the avatar, url and Twitter records. Send a name instead and you get its address and profile records: avatar, url, Twitter, GitHub, description and email. Everything is read from the ENS registry and resolvers on Ethereum mainnet through public nodes.

curl -i -X POST https://iamai.markets/api/x402/services/IoU002z2rmzH \
  -H "Content-Type: application/json" \
  -d '{"address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"}'

# Forward lookup, the listing's example: {"name": "vitalik.eth"}
# $0.003 per call over x402

Limits worth knowing

The product

Questions

Why does an address show no ENS name even though it owns one?

Owning a name doesn't set it as primary. The owner has to set the reverse record in the ENS app.

Is a verified ENS name proof of identity?

It proves the address controls that name, not who the person is. Names can be bought by anyone.

Can I look up many addresses at once?

Not in one call; send one address per call. For large batches, a node and ethers.js are cheaper.

Related

Updated 2026-12-02