> For the complete documentation index, see [llms.txt](https://docs.novabloq.com/web3-metamask/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.novabloq.com/web3-metamask/elements-details/web3-utils/get-ens-domain-from-address.md).

# Get ENS Domain from Address

Get the ENS domain from a wallet address.\
For example:\
\&#xNAN;*0xce70B7bCFe25C6Da352d596F8f2c937C5258eb09* will return *novabloq.eth*

### [Demo](https://web3-demo.bubbleapps.io/version-test/ens)

{% hint style="info" %}
Your wallet must be connected to the **ethereum mainnet**
{% endhint %}

## &#x20;<mark style="background-color:blue;">Parameters</mark>&#x20;

<table><thead><tr><th width="197.33333333333331">Parameter name</th><th width="91">Type</th><th>Description</th></tr></thead><tbody><tr><td>Wallet Address</td><td>Text</td><td>Wallet address to get the ens name for</td></tr></tbody></table>

## &#x20;<mark style="background-color:blue;">Events</mark>&#x20;

<table><thead><tr><th width="245">Event name</th><th>Description</th></tr></thead><tbody><tr><td>ENS Domain is Ready</td><td>Triggered when the result is ready to be used</td></tr><tr><td>NO ENS Domain available</td><td>Triggered if the wallet doesn't have an ENS name or an error occurred, for example, if you are connected to the wrong chain.</td></tr></tbody></table>

## &#x20;<mark style="background-color:blue;">States</mark>&#x20;

<table><thead><tr><th width="154.33333333333331">State name</th><th width="85">Type</th><th>Description</th></tr></thead><tbody><tr><td>ENS: Domain</td><td>Text</td><td>Contains the ENS name, for example: novabloq.eth</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.novabloq.com/web3-metamask/elements-details/web3-utils/get-ens-domain-from-address.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
