@rbtc-eventkit/webhook-worker
v0.1.1
Published
Self-hostable worker that polls a peg-in status backend, normalizes statuses into canonical lifecycle states, and delivers **signed webhooks** to an integrator endpoint.
Downloads
156
Readme
@rbtc-eventkit/webhook-worker
Self-hostable worker that polls a peg-in status backend, normalizes statuses into canonical lifecycle states, and delivers signed webhooks to an integrator endpoint.
Install
npm install @rbtc-eventkit/webhook-workerConfigure
Copy the env template:
cp .env.example .envKey variables:
BACKEND_BASE_URL,BACKEND_DEPOSITS_PATHPOLL_INTERVAL_MSWEBHOOK_ENDPOINT_URLWEBHOOK_SECRETSTORAGE_MODEandSTORAGE_PATH
Run
npm run devWebhook headers
X-RBTC-Signature(HMAC SHA256 hex of raw JSON body)X-RBTC-EventX-RBTC-Event-Version
