Inspiration
As we all are aware that blockchains are isolated in nature, this means they can not interact with the outside environment. This leads to limiting the user experience and efficiency of a website or an app. Enabling notifications on a blockchain can be a powerful tool for staying informed and engaged in the world of decentralized finance and digital assets and can enhance user experience greatly.
This made me wonder what if somehow we can enable sending notifications directly from the blockchain.
What it does
Fantom Alert brings notification to Fantom blockchain. Fantom Alert makes it very easy to enable sending and receiving notifications on Fantom blockchain and by doing so it greatly enhances the user experience and the efficiency. Using Fantom Alert a user can create channel using the Fantom Alert website or they can directly integrate Fantom Alert smart contract into their smart contract and start sending notifications. There are many compelling reasons why notifications are an essential component of any blockchain system. Here are a few of the most important ones:
User Experience - Fantom Alert can improve the user experience for participants in a blockchain system. By providing users with real-time updates and alerts, notifications can help to ensure that users feel more connected to the blockchain and more engaged with the system overall.
Efficiency - Another benefit of using Fantom Alert in a blockchain system is that they can help to improve overall efficiency. By automating the process of notifying participants about changes or updates to the blockchain, notifications can help to reduce the need for manual intervention and streamline the entire system.
and there are lot of other things as well that helps building better applications just by enabling the notification in a blockchain. To start sending notification a user has to first create a channel and then they can simply start sending notifications to their subscriber, it's as easy as it gets. Fantom Alert makes use of the Channels contract deployed on Fantom testnet that you can refer here.
How we built it
I have used next.js to build the website of Fantom Alert where user can easily create channel and start sending notification. You can visit Fantom Alert website here
Fantom Alert solely depends on the Channel contract currently deployed on Fantom Testnet that works as the backbone. You can refer smart contract here
Another one of the main aspect of Fantom Alert is the graph protocol. The graph protocol helps achieving what Fantom Alert is able to provide by working with the events emitted by the Channels smart contract itself. You can check the subgraph here
Nodejs provides Rest apis to read the data from Fantom Alert such as all the information about a channel or reading a specific notification.
Challenges we ran into
This was my very first time working with the Fantom Blockchain and I was amazed by how fast Fantom really is. I have also worked with the graph protocol for the very first time and it took me some time to understand how it really works. But after spending some time I was able to understand the functioning of the graph protocol and was able to deploy it easily on Fantom testnet.
Accomplishments that we're proud of
Enhancing the user experience is one of the most important thing we talk about in blockchain space, and I think that by enabling notifications directly via smart contract vastly enhances the user experience and I think that this is the problem that every user face. I am really glad that I was able to find a solution to the real world problem and that it is scalable as well and I was able to build something that most of the people really want to see in this space.
What we learned
This was my first time with the Fantom blockchain and working on Fantom was really an amazing experience. I learnt about how we can emit events and do so many things by just making use of the events using the graph protocol.
What's next for Fantom Alert
My first priority will be to make Fantom Alert more secured and more scalable. The second thing that I would like to improve is the user experience of how user interacts with the incoming notification and I would like to make it easier for developers to integrate Fantom Alert in their app. I would also like to provide a npm package to make it easier for developers to integrate Fantom Alert in their website.
Built With
- ethers.js
- fantom
- graph
- graphql
- hardhat
- javascript
- next
- node.js
- solidity
- wagmi
Log in or sign up for Devpost to join the conversation.