Learn
>
Getting Started with ENS in Mailchain

Getting Started with ENS in Mailchain

February 21, 2023

The Ethereum Name Service (ENS) is a distributed, open, and extensible naming system based on the Ethereum blockchain. ENS’s job is to map human-readable names like ‘alice.eth’ to machine-readable identifiers such as Ethereum addresses, other cryptocurrency addresses, content hashes, and metadata. ENS also supports ‘reverse resolution’, making it possible to associate metadata such as canonical names or interface descriptions with Ethereum addresses. Source: ENS Documentation

How To Add Your ENS Name To Mailchain

Prerequisites:

  • You have an ENS name registered to your address (see here)
  • You have configured the ENS Primary Resolver (see here)
  • You have a Mailchain account (see here)

Add Your ENS Name to Mailchain

Log in to your Mailchain Account.

Click “Register Your Wallet”.

https://docs.mailchain.com/assets/images/ens1_1-baad41dae10292e1c587f5eed6e1431f.png

A modal will open. Select a wallet provider (e.g. Metamask), then click 'Connect'

https://docs.mailchain.com/assets/images/ens1_2-dc5e119d04e2e0298ad28e42dff3bbed.png

Choose the address to connect, then click Next.

https://docs.mailchain.com/assets/images/ens1_3-bba96daf521cb921615aa94e5053a56c.png

Click 'Connect' to confirm Mailchain should be able to read your address.

https://docs.mailchain.com/assets/images/ens1_3-1-5aaffb5f2b6457044026e3cedb2d2dd1.png

The address is now connected, but we need to register it in Mailchain. To do this, click 'Verify Address'

https://docs.mailchain.com/assets/images/ens1_4-f9c2f2e39d1521742818b9f668e9f34c.png

A 'Signature Request' will appear in your wallet. It contains the following text:

Message:
Welcome to Mailchain!

Please sign to start using this address with Mailchain. This will not trigger a blockchain transaction or cost any gas fees.

What's happening?
A messaging key will be registered with this address and used only for messaging. It will replace any existing registered messaging keys.

Technical Details:
Address: `your_address`
Messaging key: `a_generated_messaging_key`
Nonce: `a_number`

https://docs.mailchain.com/assets/images/ens1_5-3600a282bf5acf972b9176f43a97315b.png

Review the request and click 'Sign' to complete verification.

https://docs.mailchain.com/assets/images/ens1_6-60a0074e79ab5b24dc385e77f9c0f87d.png

The next step checks for connected name services, including ENS names. This example found happywriter.eth. If you do not see your ENS name here, you can manually search for it using the search box. If it still cannot be found, please see ENS FAQs here.

https://docs.mailchain.com/assets/images/ens1_7-58d54ada8d683c1c44f8a743df25feec.png

You can add a custom label for your address. By default, Mailchain will populate your ENS name. Click Apply to save and continue.

https://docs.mailchain.com/assets/images/ens1_8-9f3f3ae79147f48d3e035ccc44aa7c16.png

Mailchain is able to receive messages for your wallet address before you sign up. Click 'Synchronize' to retrieve these messages, or click 'Skip' to synchronize later. Any synchronized messages will appear in your inbox.

https://docs.mailchain.com/assets/images/ens1_9-80e2627c074582d980a6f5523478b635.png

You can now click 'Done' to disconnect your wallet and close the modal, or choose to register another address.

https://docs.mailchain.com/assets/images/ens1_10-35355d9b2d0666625b9bcc2b915aad1b.png

You will now see the newly added inbox on the left. This will be labelled with the label you provided when registering the address. Any messages sent to that address or the ENS name will appear in this inbox.

https://docs.mailchain.com/assets/images/ens1_11-1a5de4c3105a42574746be8adbe7cd75.png

How To Send A Message Using Your ENS Name

With Mailchain you can send Mailchain message from your ENS name to other Mailchain users.

Prerequisites

  •  You have an ENS name registered to your address (see here)
  • You have configured the ENS Primary Resolver (see here)
  • You have a Mailchain account (see here)
  • You have added your ENS name to Mailchain (see above)

Compose And Send A Message From Your ENS Name

Log into your Mailchain account.

Click 'Compose' in the sidebar.

https://docs.mailchain.com/assets/images/ens2_1-bc89bb546aa0b2bca3b0fe278a3b6dcc.png

In the New Message window, click the “From” dropdown menu.

https://docs.mailchain.com/assets/images/ens2_2-dae19f75d459e1899750a0526b4b6a9a.png

Select your ENS name.

https://docs.mailchain.com/assets/images/ens2_3-8c8a1f3bcf698dbdaa7c7fdb659484a4.png

Fill out the rest of the message, then click Send

https://docs.mailchain.com/assets/images/ens2_4-ce87fe2442822a309d508d52faf1401b.png

Your message should be successfully sent.

https://docs.mailchain.com/assets/images/ens2_5-17cfc03f30c726829d6af896ad796f25.png

Done! Your recipient will receive your message from your ENS name.

Meet the writer

Misha Deville
Mailchain
Head of BD & Parnterships at Mailchain, Ex-AWS