This package contains the widget to be included on a project's DAPP or web site to allow users to quickly setup their on-chain event notifications.
- include this package in your project
- create an instance of the class ODNP (open defi notification protocol).
- on load of your project call the init function.
odnp.init();
- create a button to open the popup that shows the instructions to the user.
- 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');