Webhooks
Get notified when your orders trigger.
Events
Set a webhook URL in the dashboard. Tradient sends these events:
order.triggeredeventAn order's condition was met; transactions are ready to sign.
order.skippedeventAn order could not be prepared, with the reason.
Verifying signatures
Every webhook carries a tradient-signature header: the hex HMAC-SHA256 of the raw body with your webhook secret. Verify it before trusting the payload.
const expected = crypto.createHmac("sha256", secret).update(rawBody).digest("hex");
if (expected !== req.headers["tradient-signature"]) throw new Error("bad signature");