A simple example webhook server for using Alchemy Notify that uses node express.
First, install Yarn if you don't have it:
npm install -g yarn
Then, install the dependencies of all packages:
yarn
To run on localhost:8080:
PORT=8080 HOST=localhost SIGNING_KEY=whsec_your_key_here yarn start
Please change SIGNING_KEY to the signing key corresponding to your webhook, which you can find here
And just like that, you're done!
NOTE: Your webhook path is currently set to "/webhook-path" in src/index.ts
, but feel free to change it to whatever path you'd like.
If you aren't receiving any webhooks, be sure you followed the steps here first.