# ENS Testnet

Ethereum Name Service has a testnet version that anyone can use to run tests with ENS domains.&#x20;

You simply need to switch your wallet network to Goerli network.

<figure><img src="https://3721694819-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjtTBWAKEvs6A0ESvyn8d%2Fuploads%2FgXUxX1OjtUaWDq2W1Xg0%2FScreen%20select%20goerli.PNG?alt=media&#x26;token=ba021826-a0c0-4632-a868-1044b46e1253" alt=""><figcaption><p>Select Goerli</p></figcaption></figure>

It should be available on Metamask by default. If you don't fing it, go to Metamask configuration and switch the toggle to show Test Networks.

<figure><img src="https://3721694819-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjtTBWAKEvs6A0ESvyn8d%2Fuploads%2FbPx2dXkyXUdC4qnP7IKh%2Fscreen%20show%20testnet.PNG?alt=media&#x26;token=e282f3ea-0de9-4349-b869-2239d0322130" alt=""><figcaption><p>Show test networks</p></figcaption></figure>

Then just go to [app.ens.domains](https://app.ens.domains/) and use it live the main net version.&#x20;

To mint a domain you need GoerliETH. You can claim GoerliETH made available by ENS at the link [alpha.ens.domains](https://alpha.ens.domains/).

Now you can register a testnet ENS domain.&#x20;

<figure><img src="https://3721694819-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjtTBWAKEvs6A0ESvyn8d%2Fuploads%2FCg2Ecl7Hx1HE9iYjJ5Hl%2Fscreen%202%20buy%20domains.PNG?alt=media&#x26;token=3d33d3e4-b690-49d4-a42e-7092694632fa" alt=""><figcaption><p>Register a testnet ENS domain</p></figcaption></figure>

Registering a new ENS domain is made of two transactions, same as ENS Main Net.

<figure><img src="https://3721694819-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjtTBWAKEvs6A0ESvyn8d%2Fuploads%2FpToNbx4QB9oBzznm9Nzh%2Fscreen%20start%20process.PNG?alt=media&#x26;token=13540b12-252c-4706-84ed-d6b84f4b6264" alt=""><figcaption><p>Two stet process to register ENS domains on testnet</p></figcaption></figure>

At the end of this short process you're the owner of this ENS domain on Testnet. \
In order to use it with ENS Raffles, you just need to do one more action with your domain.

<figure><img src="https://3721694819-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjtTBWAKEvs6A0ESvyn8d%2Fuploads%2FJ4lhqLfmQyz549UKBY9d%2Fscreen%20ticket%20bought.PNG?alt=media&#x26;token=ab1ea190-380e-4d6f-980a-f8072c5c37f7" alt=""><figcaption><p>Testnet ENS domain bought</p></figcaption></figure>

As you can see in the image below, the domain is "wrapped" by default. \
To use our Raffle service, the domain shoud be unwrapped, so you need to perform a transaction to change this status. \
If you don't know much about ENS Name Wrapper, we suggest you to read this [in-depth article](https://ens.mirror.xyz/0M0fgqa6zw8M327TJk9VmGY__eorvLAKwUwrHEhc1MI) from ENS DAO<br>

<figure><img src="https://3721694819-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjtTBWAKEvs6A0ESvyn8d%2Fuploads%2Fjzgqzx5MjrN6S8Gi8VKd%2Fscreen%20more.PNG?alt=media&#x26;token=bec41e4c-049f-43b3-a3a8-4b27709e45cb" alt=""><figcaption><p>ENS domain is wrapper</p></figcaption></figure>

You just need to sign a transaction to unwrap the ENS domain.

<figure><img src="https://3721694819-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjtTBWAKEvs6A0ESvyn8d%2Fuploads%2FHaMov8HGLkKwKxKVT5bc%2Fscreen%20unwrap.PNG?alt=media&#x26;token=3fad32f8-2998-490c-a2a5-311f8f017aa2" alt=""><figcaption><p>Sign tx to unwrap ENS domain</p></figcaption></figure>

Now just check of the ENS domain status has changed **from wrapped to unwrapped**

<figure><img src="https://3721694819-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjtTBWAKEvs6A0ESvyn8d%2Fuploads%2FNuIzTfU5W3DltqRHs1WF%2Fscreen%20unwrapped.PNG?alt=media&#x26;token=6db19b13-07df-4b01-8701-2414a96ba080" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: 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://ensraffles.gitbook.io/ens-raffles/testnet/ens-testnet.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.
