Skip to content

"Get Notifications" button web component for integration in projects' web apps

Notifications You must be signed in to change notification settings

open-defi-notification-protocol/widget

Repository files navigation

Open DeFi Notification Protocol Widget

This package contains a button widget to be integrated on a project's web app to allow its users to quickly setup their on-chain event notifications, download the notifications mobile app and get an easy QR for quick setup.

Implementation notes

  1. include this package in your project
  2. create an instance of the class ODNP (open defi notification protocol).
const odnp = new ODNP();
  1. on load of your project call the init function.
odnp.init();
  1. create a button to open the popup that shows the instructions to the user.
  2. assign the onclick event of that button to the show function, passing the user wallet address and the project identifier on the Open DeFi Notification Protocol.
odnp.show('0xC8da773F54Ce6fcffFd5B8cC1F76542D2B75c412','projectId');

About

"Get Notifications" button web component for integration in projects' web apps

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •