strike-webhooks
БесплатноЗапускает вложенные скриптыНе проверенReceive and verify Strike (strike.me) Bitcoin/Lightning payments webhooks. Use when creating a Strike webhook subscription (POST /v1/subscriptions), verifying…
от hookdeck★ 104 звезды на GitHubОб этом скилле
Strike Webhooks
Strike (Zap Solutions, Inc.) is the Bitcoin Lightning Network payments platform: invoices, Lightning and onchain receives, payments, payouts to bank accounts and currency exchange, via https://api.strike.me/v1/*. Strike webhooks tell your server that one of those resources was created or changed. They carry no entity data: you fetch the resource by data.entityId.
Not the same company as: Stripe (Stripe-Signature, t=,v1= scheme; use stripe-webhooks), Strike Graph (SOC 2 compliance), the pentest and fintech brands also called Strike, or Strikedeck (customer success). Nothing here applies to them.
When to Use This Skill
- How do I receive Strike webhooks?
- How do I verify the Strike
X-Webhook-Signatureheader? - Which secret do I use: the API key or the subscription secret? (the subscription secret)
- Why does my Strike webhook signature never match? (the body was parsed and re-serialised)
- Why does Strike keep retrying my webhook? (the handler took longer than 5 seconds)
- How do I get the invoice details from an
invoice.updatedwebhook? - How do I recover Strike webhooks I missed during an outage?
Verification (core)
| Part | Value |
|---|---|
| Header | X-Webhook-Signature |
| Value | Lowercase hex HMAC-SHA256 (64 characters), no prefix, no timestamp |
| Key | The secret you set on the subscription (10-50 chars, you generate it). Not the API key |
| Signed content | The raw request body bytes |
const crypto = require('crypto');
// secrets: [STRIKE_WEBHOOK_SECRET] (+ STRIKE_WEBHOOK_SECRET_PREVIOUS while rotating)
function verifyStrikeSignature(rawBody, signature, secrets) {
const value = String(signature || '').trim();
if (!/^[0-9a-fA-F]{64}$/.test(value)) return false; // length check: timingSafeEqual throws on mismatch
const received = Buffer.from(value, 'hex');
return secrets.some((secret) =>
crypto.timingSafeEqual(received, crypto.createHmac('sha256', secret).update(rawBody).digest())
);
}
- Hash the raw body. Strike's own JavaScript sample hashes
JSON.stringify(request.body). That only works while the payload survives a parse/stringify round trip unchanged; pretty-printing, a rewriting proxy or an escaped character breaks it. Strike signs the bytes it sent, so verify those (express.raw(),await request.arrayBuffer(),await request.body()). - Fail closed. Secret unset, header missing, wrong length or wrong value:
401. Never skip verification. - Python:
hmac.new(secret.encode(), raw_body, hashlib.sha256),bytes.fromhex,hmac.compare_digest. See references/verification.md.
For complete handlers with tests, see examples/express/, examples/nextjs/, examples/fastapi/.
Payload: A Thin Notification
{
"id": "245e40d8-f197-411c-8f20-a326d08da402",
"eventType": "invoice.updated",
"webhookVersion": "v1",
"data": { "entityId": "602cc206-6b4a-42dd-bc89-9a534bb04034", "changes": ["state"] },
"created": "2009-01-03T18:15:00+01:00",
"deliverySuccess": true
}
id: the event ID. Dedupe on it; Strike can deliver the same event more than once.data.entityId: fetch it, e.g.GET /v1/invoices/{entityId}withAuthorization: Bearer $STRIKE_API_KEY.data.changesonly appears on*.updatedevents; read it asdata?.changes ?? [].data.receiveId:receive-request.*events only.entityIdis the receive request,receiveIdthe individual incoming payment — and a receive request can be reusable, so you need both. Match it againstGET /v1/receive-requests/{entityId}/receives.created: RFC 3339 with an offset (examples use+01:00,+00:00, and 7 fractional digits, which Python'sdatetime.fromisoformatrejects before 3.11). Parse it tolerantly; don't assume UTC.deliverySuccess: Strike's own delivery bookkeeping (nullable, and absent from several of Strike's own examples). Don't branch on it.webhookVersion: pinv1on the subscription and check it in the handler. The API also acceptsv2, but its payload is undocumented as of 2026-11-20.
Deliveries aren't guaranteed to arrive in order. The fetched resource is the source of truth.
Event Types
All 14 events Strike supports, and where each entityId resolves:
| Events | Fetch with |
|---|---|
invoice.created, invoice.updated |
GET /v1/invoices/{id} |
payment.created, payment.updated |
GET /v1/payments/{id} |
payout.created, payout.updated |
GET /v1/payouts/{id} |
payout-originator.created, payout-originator.updated |
GET /v1/payout-originators/{id} |
payment-method.bank.created, payment-method.bank.updated |
GET /v1/payment-methods/bank/{id} |
currency-exchange-quote.updated |
GET /v1/currency-exchange-quotes/{id} |
deposit.updated |
GET /v1/deposits/{id} |
receive-request.receive-pending, `receive-request.rec |
Установить strike-webhooks в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл strike-webhooks?
Receive and verify Strike (strike.me) Bitcoin/Lightning payments webhooks. Use when creating a Strike webhook subscription (POST /v1/subscriptions), verifying the X-Webhook-Signature header (lowercase hex HMAC-SHA256 of the raw body keyed with the subscription secret you chose), debugging signature mismatches or retries, fetching the entity by data.entityId, replaying missed events from GET /v1/events, or handling invoice.updated, payment.updated, payout.updated and receive-request.receive-completed. Not Stripe, Strike Graph or Strikedeck.
Как установить скилл strike-webhooks?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл strike-webhooks запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic