[Day 1 - 03] Building the communication layer of web3 with EPNS with Pranshu Rastogi

BUIDL Vietnam 2022 · September 2022 · 17:50

Pranshu Rastogi, VP of engineering at EPNS, introduces the Ethereum Push Notification Service as a communication layer for web3. They explain why users miss critical events such as loan liquidations or governance votes, then walk through creating a channel, opting in, and sending broadcast, targeted or subset notifications, including gasless sending through the dapp and SDKs. Use cases span DeFi, NFTs and DAO governance, and the talk closes with hackathons and a grant program for builders.

Speakers

Topics

From BUIDL Vietnam 2022, hosted by Kryptoplanet.

Transcript

the next section will be delivered by a person who have a strong professional background working as an algorithmet Trader with crypto exchanges and a blockchain developer our next speaker ranshu is currently the vice president of engineering at epns ethereum push notification service he is championing the development of PE NS as a protocol for blockchain-based notification that a chain agnostic platform Independence and incentivized he will share his experiences in building communication layer of wet 3 with epns so now let's

bring back the energy and have a router Applause to welcome branshu [Music] hello hello hello everyone good morning everyone can you hear me cool so today I'm going to discuss about something building the communication layer for web3 right I guess like we all are creating something on web3 right can you raise hand like how many of you are developers over here or building something on web3 gray so I guess like one thing we

basically face while developing is how to communicate right of course I'll I'll tell you more about that but initially let me introduce myself hey everyone this is me resemble um my name is pranshu rastogi currently I'm working as VP of engineering at epns and today we are going to discuss about uh communication layer in the web3 so first thing is this is Friends of epns so let me tell a bit background about it okay so we all are developing something on web3 right and we usually communicate with the web 3 by web browser right we

open our web browsers maybe connect our wallet and then browse the protocol right so it's a bit different uh it's a bit difficult for us right to communicate with that for example let's say I have a uniswap account okay or my D5 loan is about to get liquidated now it's really really hard for me like you know every time I open my web browser connect my metamask or any of the wallets and see like hey what's the position of my loan or your anything maybe you many of you are also owning ens name right and for me at least for me personally it's really hard to keep a track of it okay

so you can see like we have all these channels at epns some of our friends and moving forward this is the agenda of today's Workshop only today talk first thing is why web3 okay how to notify in 10 minutes or less third thing is what web3 things can you do and lastly q a so let's get started okay I've already told you that communication is stone age for example how we communicate even in the web 2 is mostly by notifications right let's say we are using Whatsapp right it's very rare we you know directly open WhatsApp and like you know my friend Alika or

someone you know it's really hard for me like you know opening a WhatsApp and see hey I have received some notification some chat or some messages from her we usually see the notification in our mobile phone and then we open then we communicate right web3 cannot notify users for example most of the dab uh we communicate is directly by going through the web browsers right third thing is like you know critical info drop like I mentioned let's say my loan is about to get liquidated in an RV there is a governance proposal that I wanted to vote or be a part of it it's really really hard for me to you know keep a track of it so that's the missing piece of web3 like we cannot do this thing

right now what's the solution like how we can resolve this or what is the way to you know communicate in the web3 so first thing is open communication layer we at epns is a total open communication protocol okay through which you can send and receive notification even in the web 3 space okay first thing is notifications are totally Dynamic that means you cannot just send let's say hey hi or message you can integrate videos you can integrate images also okay so notification are Dynamic for example let's say I want to notify my users or I want to notify you

know anyone about some cool you know things that is going to happen okay or maybe about this Workshop right I can just add a CTA of the middle dot Asia that will be super cool let's say we are going to do you know nft airdrop and we have your wallet addresses we can just you know do send the notification with the Middle East notification link third thing is multi-chain platform agnostic delivery so maybe have you like you know thought or you do you have this question in your mind that where I'll be receiving this notifications right so this is platform agnostic so you can

receive notification in your mobile application browser extension or any of the wallets or front end and even we have sdks and everything so you can integrate in your wallet and everything now enough of talk let's get started you know how we can actually send notifications okay so first thing is this is a bit technical architecture of how we are uh you know uh how we have created this text and how we usually send going to send this notification so first thing is they are like two aspect of sending a notification number one is creating a channel if you want to send notifs First Step you have

to create a channel okay second step to send notification got it see first thing creating channel is a one time thing okay once you have created a channel you can send notification through that channel for example we have seen initially in friends of epns so all of them have channels and you will be receiving notification from your channel okay so um our main smart contract epns go have the functionality of creating a channel okay then second is EPS communication this basically enables communication now

the thing is we are not just on ethereum you can send notification even to a different blockchains okay for example uh polygon ethereum or any evm non-ebm chains okay our EPN score is deployed on the ethereum that is a one-time process of creation of Channel but EPS com smart contract that enables communication and through which you can send notification on any blockchain okay so that is deployed on all the other blockchains third thing is push notes so these are the notes that basically validates and dispatch those notifications okay so do no spam thing

okay so epns com communicate with the push notes for the communications epns core uh connect with the push node to validate that's how this ecosystem works on a architecture level moving forward finally when all these pieces are get connected you can finally receive notification on any crypto wallet service or for intact okay moving forward how to you know notify so I have already mentioned the first step is to create a channel second thing is to opt in now why opt-in I guess you have been using a YouTube or like watching a YouTube videos a lot

okay so to send a video or to basically upload a video I have to create a channel right similarly to send notification I have to create a channel now a web 3 space is a consent basis right now we cannot spam you so one of the critical or most important thing is to opt into the channel right otherwise we can send notification to anyone that's the reason one of the most important thing is to opt into the channel so when I say create a channel send notification the most important thing is to opt-in also okay now maybe someone from you can ask me what if hey

pranshu what if you know I don't opt in can I send a notification yes notification can be sent but it will be delivered to the spam box okay so it's fine no one is going to spam you now third thing is push notification via channel so this is a three-way process first thing is to create a channel second is to opt into the channel and third is to push notification okay so let's get started how can I create a channel ah currently there are like two ways to create a channel first thing is epns core smart contract that we have seen on the right hand side from my side okay another way is to use epns dap okay uh

I'll show you with the epns dab today okay and it's really easy also so we have like two dab one is the production that is live on the ethereum main net second thing is staging on the ethereum test net environment okay so first thing is to create a channel we usually go to the dab you can you know prefer like you want to go to the production tab or the staging to just test out the things okay first thing if you click on the create your channel you'll see something like this UI okay this is divided into three parts first part is this taking info second is the channel info and third is upload

your logo so there are two steps to do is first thing make sure you have a 50 die in your wallet second thing is some ether to send a guest fee right so this is the first step second thing is you know add a channel info and third is the upload log logo so for the sorry yeah for the staging environment we also have the faucet you can see at the bottom okay to get the test die and the faucet so maybe after this you know talk or something some like whenever you have time you can try this out okay second step is channel info as you can see uh so I have just you know put a

create channel name uh I have chosen the network in which I have to create a channel okay then the channel description and website URL okay and final step is to upload your logo that's it that's how you can create a channel and it is as simple as this so just a three-way process and is it just a one single time thing so you don't have to create a channel every time okay you can use this channel to send notification now how to send notification uh sending notification is cool you can send notification through the smart contracts epns dap and that is guest list that

means you don't require any ether to send notification is totally guestless third thing is you using epns SDK okay show Runners and sub graph the cool thing is all these are guest lists okay so no ether okay we are good to go and you can also read about this on the docs.epns.io I am here just you know do let me know like if you have any queries third thing is types of notification so now the thing is okay I got it like you know how to create a channel how to send notification but what are the types of notifications that I can send right so currently we support three types

broadcast targeted and subset okay to explain it bit more what is broadcast do you remember I have told you you have to opt into the channel right or subscribe to our channel in order to get notification so broadcast is broadcast notification to all the subscribers or all the users who have opted into your channel second thing is targeted let's say like I am doing some you know cool airdrop or you know I want to send a notification just to the specific user for about loan Recreation or something then you can say you can you know use Target note notification to send the notice to that specific Target wallet

address third thing is the subset so subset is you can create your own group that is of course you know a subset of the broadcast notification and you can send no tips to them so these are three types of notifications that you can send but of course you can always you know expand the notification types of it then third thing is how to send notification so this is one of the screenshots from the epns staging tab how to send a notification okay so just for the background I have already explained you the types of notification so you can see like you know this is something that you can do if you wanted

to send notification from the tab again remember we have the option to send notifications from showrunners Smart contract sdks subgraph and lot of more okay so this is one of the examples from the epns DAP on the top you have to select either broadcast targeted or subset okay I have chosen broadcast then we have like subject media and CTA link so when I was explaining in the initial stage that notification can be more than text they can be media you can add a CTA link and much more so whatever you want to enable you can add it over here okay I have enabled all so it will be a

really cool notification so you can add a subject you can add a notification message URL CTA link and everything and your notification will look something like this when you send it at the bottom okay and that said because this is a guest list notification you don't have to pay any guest fee or anything you can just click on the set notification and wahoo cool now um we have basically learned how to create a channel okay how to opt in how to send notifications what are types of notification now finally jumping to the you know use cases like hey is it cool or like is are there any use cases where I can use this so of course we have a

lot of things you can see like you can use in your D5 ecosystem nft or me basically like you know any any web free or webto thing okay whenever you require to communicate with your users you can use that for example you know there is a proposal going on the governance so you can choose to send notification or communicate with your users there are nft service contentment hours so whatever you guys are building you can always you know integrate epns to send notifications cool now as a developer like what are the other things you can do so first thing is join a hackathon okay like there are a lot of cool hackathons are

happening as a web 3 developer or you know as a builder you can join hackathons participate in the Dow the coolest part about web3 is you have your say in that right you can say okay you know you can vote about the proposals you care for or you know what you think is good also EPN has have like one million dollar Grant so if you're creating or building something over epns so you can always apply for the grant too cool so I guess that's it from my side thank you so much if you have any queries anything you can always scan this QR I am here just you know say hi to me xinjiao and I'll be there for you

thank you so much everyone thank you friendship and please remain on the stage