This examples shows how to implement webhook endpoint for receiving a webhook requests by Blockfrost using Node.js Express framework.
To learn more about Secure Webhooks, see Secure Webhooks Docs.
This example is written in Typescript and it is intended to run on Node.js, not in a browser. Follow the instructions below to run it.
These instructions assume that you already have Node.js installed and you are already familiar with running hello world on Node.js.
git clone [email protected]:blockfrost/blockfrost-js-examples.git
Change directory to cloned repository blockfrost-js-examples
cd blockfrost-js-examples
yarn
yarn workspace @blockfrost/example-webhook-basic start