DEV Community

Cover image for Getting Started With Web3 Notifications Using EPNS
Ashutosh Tripathi πŸ₯·
Ashutosh Tripathi πŸ₯·

Posted on • Originally published at pythontony.hashnode.dev

Getting Started With Web3 Notifications Using EPNS

Gm folks ✨

This is a quickstart tutorial for developers to start integrating Web3 notifications in their projects using Ethereum Push Notification Service (EPNS), which is the first decentralized protocol to send push notifications for decentralized apps (dApps), NFTs, and DAOs like Uniswap, MakerDAO, ENS, and many more.

This tutorial will show you all about channels, subscribers, and notifications. You don’t need to have some fancy developer tag to be here. Just your coffee β˜•οΈ and an inquisitive mind πŸš€

Decentralized Push Notifications

Push notifications have become an integral part of our lives, with nearly 3 billion active users worldwide in 2021. These notifications are like messages. You can send them to all subscribers or specific users.

Their arrival on blockchains like Ethereum is imminent and will be extremely beneficial for the growth of the ecosystem.

At EPNS, we are building the communication layer for Web3, starting out with decentralized push notifications. Any wallet, dApp, smart contract, or backend can create a channel on EPNS.

Channels are further able to send gasless notifications tied to user wallets. Users can receive these notifications via the Android/iOS app or browser extension.

What Are Channels?

To start sending push notifications in Web3, the easiest way is to set up a channel on EPNS. Channels are a lot like telephone numbers. They're used to route notifications to the right wallets. Your wallet address becomes the destination for receiving those push notifications.

You must have watched videos from your favorite channels on YouTube. You receive notifications for the latest content when you press the β€œSubscribe” button on their channel. YouTube uses channels to route these notifications to its subscribers, but these are centralized (i.e. owned by Google) and can be shut down at any time 😨

EPNS allows you to create your own channels leveraging our protocol on decentralized networks. These channels can be subscribed to by users of your dApp and receive push notifications. It creates a secure and verified communication medium for decentralized apps and their users.

Channels are decentralized and can not be shut down. And above all, it’s extremely easy to use, with a user-friendly interface and simple tools for developers.

With a channel linked to your wallet on EPNS, you can send out broadcasts, targeted, subset, and even secret notifications. And above all, our dApp makes it super easy to send push notifications. You don't need to know the ins and outs of how it works πŸ˜‰

5 Steps To Create Your Channel

To start with, you can create channels on Prod and Staging dApp. If you want to try out how channels work and send notifications, it’s highly recommended for you to try the Staging dApp. All you need is a MetaMask wallet and the logo of your channel.

For those who are not aware of Metamask, it’s a decentralized wallet provider used to interact with Ethereum. You can download the browser extension or their Android/iOS application to connect with EPNS dApp.

Creating a channel takes only a few clicks and you are up and running. And I’ll show you exactly how to do that in 5 easy steps πŸ˜‰

1 β†’ Go to the EPNS Staging dApp available on https://staging.epns.io/
Connect MetaMask Wallet to EPNS
2 β†’ Connect your Metamask Wallet with the dApp

3 β†’ Once Connected, go to Create Channel option in the Developer tab. Upload your Channel Logo and don't forget to click on Get Free DAI for Channel. By the way, you won't get the Free DAI option on Prod dApp. You will have to stake real DAI πŸ™‚
Get Free DAI
4 β†’ Fill in all relevant Channel Details. Keep the Alias network fields blank πŸ˜‰ We'll need it only when we create a Channel Alias (Polygon is live on Staging πŸ’œ)
Fill Details
5 β†’ Once all the details are filled, click on Setup Channel. This will initiate two important transactions

  • *Approval of DAI *β†’ This transaction ensures that your wallet address has successfully approved the EPNSCore contract to use 50 DAI on your behalf.

  • Channel Creation on EPNS Core β†’ Once approved, the 2nd transaction calls the channel creation function on EPNSCore smart contract to create the channel.

Channel profile page

And you are all set up!

Here is a 3-min video, you can check it out πŸ’»

Opt-In To Push Notifications

Any user who owns a Web3 wallet like MetaMask can opt-in to receive notifications from channels. Opting in to any channel is gasless and does not require any fee.

Once connected, you will see a similar list to the one below πŸ‘‡πŸΌ
List of Channels on EPNS
You can choose to opt-in for channels that can send you push notifications. And by the way, these notifications can be received via our browser extension (which works only on Chrome), or native Android/iOS apps. You can also choose to view the notifications in your Inbox on EPNS dApp.


In the next tutorial, we will teach you how to send different types of notifications from the EPNS dApp. We will also cover the integration of EPNS SDK, please stay tuned!

If you found this tutorial useful, please mind sharing it in your social circles. It will help us expand our outreach in building the future of communications.

If you’d like to know more about EPNS and decentralized communications, feel free to check out our Docs or join our Discord.

Until next time!

Top comments (0)