Get webhooks when your address is paid, duh!
You'll need dashd
already.
See dashhive/dashd-installer#4.
rsync -avhP example.env .env
rsync -avhP ./dashcore-node.example.json ./dashcore-node.json
npm ci
npm run start
POST /api/webhooks
Bearer my-api-access-token
{
url: "https://user@my-super-long-token:example.com/api/dash/payment-received",
address: "Xxxxxxxxxxxxxxxxxxx",
}
{
url: "https://user@my-s*************en:example.com/api/dash/payment-received",
address: "Xxxxxxxxxxxxxxxxxxx",
}
To create a webhook token scoped to certain allowed hostnames:
node ./bin/gentoken.js example.com,example.net
Then give the dwh_
part to the customer, and save the line in ./tokens.json
.