Signed
X-RpcNode-Signature carries a timestamp and an HMAC-SHA256 of the body. A retry is signed again with a fresh timestamp.
Webhooks
Every RpcNode event reaches your server as an HMAC-signed HTTP POST. If your server fails, we try again up to seven times, and every attempt is in the delivery log.
Webhooks carry address events, payments, transaction watches and blocks. They run on paid plans; on the Free plan you can save a webhook URL and test it on test networks (without block events). A new account can also start a free 7-day Starter trial from the cabinet.
Every attempt is signed again
X-RpcNode-Signature: t=1787347206,v1=9f2c…7b41Pause before each retry
Example data, not a real delivery
X-RpcNode-Signature carries a timestamp and an HMAC-SHA256 of the body. A retry is signed again with a fresh timestamp.
Anything but a 2xx answer, including a timeout, is retried after 10 s, 30 s, 2 min, 10 min, 1 h and 6 h: 7 attempts, then the delivery is dead.
X-RpcNode-Delivery is the id of the delivery and stays the same on every retry. Store it and ignore repeats.
The cabinet and GET /webhooks/deliveries show every delivery and whether your server answered with a 2xx.
Set the URL and the networks per kind of event in the cabinet, or with PUT /webhooks. The secret is created on the first save.
Check the signature on the raw body, then look the delivery id up before you act.
Send the answer as soon as the body is verified. A redirect counts as a failure and is retried.
The signature is HMAC-SHA256 of "t.body" with the webhook secret, used as plain text. Compute it over the raw bytes before any JSON parsing, compare in constant time and reject a timestamp that is more than 5 minutes from your clock.
X-RpcNode-Signature: t=1787347206,v1=9f2c1e0b7a2d4c58b1a6e9d07f42c5a18e6b3d90c4f7a2e15b8d3c6f9a0e7b41
X-RpcNode-Delivery: 3f9c1e0b7a2d4c58b1a6e9d07f42c5a18e6b3d90
X-RpcNode-Event: paymentimport crypto from 'node:crypto'
app.post('/hooks/rpcnode', express.raw({ type: '*/*' }), async (req, res) => {
// 1. verify: HMAC-SHA256 of "{t}.{raw body}" with your webhook secret
const sig = Object.fromEntries(
req.get('X-RpcNode-Signature').split(',').map((p) => p.split('=')),
)
const expected = crypto
.createHmac('sha256', process.env.RPCNODE_WEBHOOK_SECRET)
.update(`${sig.t}.`)
.update(req.body)
.digest('hex')
const fresh = Math.abs(Date.now() / 1000 - Number(sig.t)) < 300
const ok = fresh && sig.v1?.length === expected.length &&
crypto.timingSafeEqual(Buffer.from(sig.v1), Buffer.from(expected))
if (!ok) return res.sendStatus(401)
// 2. deduplicate: the delivery id is the same on every retry
const id = req.get('X-RpcNode-Delivery')
if (await alreadyProcessed(id)) return res.sendStatus(200)
// 3. handle, then answer 2xx
const event = JSON.parse(req.body)
await handle(req.get('X-RpcNode-Event'), event)
await markProcessed(id)
res.sendStatus(200)
})The names are code; what they mean is below.
X-RpcNode-Signaturet=<unix seconds>,v1=<hex>: when the attempt was signed and the HMAC-SHA256 of "t.body".X-RpcNode-DeliveryThe delivery id, the same as delivery_id in the body and on every retry. Use it as an idempotency key.X-RpcNode-EventThe kind of the delivery: payment, payout, address, tx, payment_order, block or test.X-RpcNode-NetworkThe network of the block. Block deliveries only.X-RpcNode-Block-HeightThe height of the block. Block deliveries only.The webhook and the WebSocket are separate transports with separate settings. The JSON body is the same, so one handler can serve both.
A signed HTTP POST to your URL, with retries and a delivery log. Best for backends and queues.
A Pusher-compatible socket with the channels private-address-events, private-payments, private-tx-watch and private-blocks. Opening a socket is free; each event is billed like a webhook.
Any 2xx answer. Anything else, including a redirect, an error or a timeout, is retried.
Yes. They are separate transports with separate settings, and a delivery on one does not switch on the other.
Store X-RpcNode-Delivery. It is the same on every retry of a delivery.
Deliveries are billed like requests, from the same credit pool. Test deliveries are free, and so is opening a WebSocket.
In the delivery log in the cabinet, or with GET /webhooks/deliveries.
Start free, save a URL, fire a test delivery and check your handler before real events arrive.