Demos Voyager's REST API by generating a notification when new events associated with a specified contract get generated on Goerli.
-
Install Node.js.
-
Clone the repo using one of the following methods:
- SSH:
git clone [email protected]:neelkamath/voyager-api-workshop.git
- HTTPS:
git clone https://github.com/neelkamath/voyager-api-workshop.git
- SSH:
-
Change the directory:
cd voyager-api-workshop
-
Install the dependencies:
npm i
-
Edit the contract address used on line 78 of
src/index.tsx
to use your own wallet.
-
Run the project:
npm start
-
Open http://localhost:1234.
-
Click Subscribe and allow notifications.
-
Open the console to see the events printed.
-
Execute a transaction using the wallet you specified during installation to get a notification of such.
-
Once you're done, press control + C to exit.
This project is under the MIT License.