Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

strike-webhooks

БесплатноЗапускает вложенные скриптыНе проверен

Receive and verify Strike (strike.me) Bitcoin/Lightning payments webhooks. Use when creating a Strike webhook subscription (POST /v1/subscriptions), verifying…

hookdeckот 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-Signature header?
  • 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.updated webhook?
  • 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} with Authorization: Bearer $STRIKE_API_KEY. data.changes only appears on *.updated events; read it as data?.changes ?? [].
  • data.receiveId: receive-request.* events only. entityId is the receive request, receiveId the individual incoming payment — and a receive request can be reusable, so you need both. Match it against GET /v1/receive-requests/{entityId}/receives.
  • created: RFC 3339 with an offset (examples use +01:00, +00:00, and 7 fractional digits, which Python's datetime.fromisoformat rejects 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: pin v1 on the subscription and check it in the handler. The API also accepts v2, 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
Полный SKILL.md на GitHub

Установить strike-webhooks в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

TODO.mdexamples/express/.env.exampleexamples/express/README.mdexamples/express/package.jsonexamples/express/src/index.jsexamples/fastapi/.env.exampleexamples/fastapi/README.mdexamples/fastapi/main.pyexamples/fastapi/requirements.txtexamples/fastapi/test_webhook.pyexamples/nextjs/.env.exampleexamples/nextjs/README.mdexamples/nextjs/app/webhooks/strike/route.tsexamples/nextjs/lib/strike.tsexamples/nextjs/package.jsonexamples/nextjs/vitest.config.tsreferences/overview.mdreferences/setup.mdreferences/verification.md

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить strike-webhooks с