Command Palette

Search for a command to run...

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

monerium-webhooks

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

Receive and verify Monerium webhooks, which follow the Standard Webhooks specification. Use when registering a Monerium webhook with POST /webhooks…

hookdeckот hookdeck★ 104 звезды на GitHub

Об этом скилле

Monerium Webhooks

Monerium is an electronic money institution that issues euro e-money tokens (EURe) on-chain, with IBANs linked to wallets. Orders move money between IBANs and wallets, and order processing is asynchronous, so you register a webhook to hear about it. Deliveries follow Standard Webhooks: each carries webhook-id, webhook-timestamp and webhook-signature headers.

When to Use This Skill

  • How do I receive Monerium webhooks?
  • How do I register a Monerium webhook (POST /webhooks) and what secret do I send?
  • How do I verify a Monerium webhook signature (webhook-signature)?
  • How do I handle order.created and order.updated events, or react to a processed or rejected order?
  • How do I handle profile.updated, profile.error or iban.updated for Whitelabel customers?
  • Why does my Monerium webhook subscription stay inactive (subscription.created)?
  • Why is my Monerium webhook verification failing, or failing only on retries and replays?

You Create the Secret

Monerium does not issue a signing secret. You generate it, send it in the secret field of POST /webhooks, and keep the same value to verify deliveries. Hookdeck's configuration alert for this source says:

You create the secret when you register the webhook: generate whsec_ followed by base64 random bytes, send it to Monerium and paste the same value here.

const secret = 'whsec_' + crypto.randomBytes(32).toString('base64');

The API reference requires a base64-encoded random value of 24 to 64 bytes, prefixed with whsec_.

Verification (core)

Header Value
webhook-id Identifies the message; retries reuse it. Your idempotency key
webhook-timestamp Unix seconds
webhook-signature One or more space-separated v1,<base64> entries

Signed content is {webhook-id}.{webhook-timestamp}.{raw body}, HMAC-SHA256, base64 output. The key is the base64-decoded part of the whsec_... secret after the prefix. Compare against every v1, entry; ignore other versions. If webhook-id is absent, read svix-id, svix-timestamp and svix-signature instead. The examples use the standardwebhooks library (npm and PyPI):

const { Webhook } = require('standardwebhooks');

// rawBody: exact request body (Buffer or string), NOT re-serialised JSON
function verifyMonerium(rawBody, headers, secret = process.env.MONERIUM_WEBHOOK_SECRET) {
  const p = headers['webhook-id'] ? 'webhook' : 'svix'; // fall back to the svix-* names
  new Webhook(secret).verify(rawBody, {
    'webhook-id': headers[`${p}-id`],
    'webhook-timestamp': headers[`${p}-timestamp`],
    'webhook-signature': headers[`${p}-signature`],
  }, { jsonParse: false }); // throws on a bad signature or stale timestamp → respond 401
}

The library always enforces a fixed 5-minute timestamp window. Hookdeck retries and replays resend the original webhook-timestamp, so the library rejects them once they are more than 5 minutes old. If you receive through Hookdeck and need late retries to pass, use the manual verifier in references/verification.md, which can drop or widen the window. In Express, read the body with express.raw({ type: '*/*' }) so any content type verifies, and parse JSON only after the check.

For complete handlers with tests, see examples/express/, examples/nextjs/, examples/fastapi/.

Event Type and Payload

Every body has a dotted top-level type, an RFC 3339 timestamp and, for every event except subscription.created, a data object: the order, profile or IBAN. The API reference prints this subscription.created example:

{
  "type": "subscription.created",
  "timestamp": "2024-08-09T12:44:04.777884Z"
}

The reference prints no example body for the order events. For order.updated, act on state processed (meta.txHashes holds the on-chain transaction hashes) and rejected (meta.rejectedReason explains why). For order.created, data.kind of issue means an incoming payment was detected; the guide also reads amount, currency, chain and counterpart.

Common Event Types

Event Fired when
order.created An order is created, e.g. an incoming payment is detected, before it is processed
order.updated An order changes state. The primary event: act on processed and rejected
profile.updated A profile's state changes (Whitelabel onboarding: approved, rejected, incomplete and others)
profile.error Profile data from a KYC provider was rejected as invalid and skipped. Opt-in
iban.updated An IBAN's details or state change; `da
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

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

examples/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/monerium/route.tsexamples/nextjs/package.jsonexamples/nextjs/vitest.config.tsreferences/overview.mdreferences/setup.mdreferences/verification.md

FAQ

Что делает скилл monerium-webhooks?

Receive and verify Monerium webhooks, which follow the Standard Webhooks specification. Use when registering a Monerium webhook with POST /webhooks, generating the whsec_ secret, debugging webhook-id / webhook-timestamp / webhook-signature verification, or handling order.created, order.updated, profile.updated, profile.error, iban.updated and subscription.created events.

Как установить скилл monerium-webhooks?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл monerium-webhooks запускает скрипты?

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

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

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