monerium-webhooks
БесплатноЗапускает вложенные скриптыНе проверенReceive and verify Monerium webhooks, which follow the Standard Webhooks specification. Use when registering a Monerium webhook with POST /webhooks…
от 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.createdandorder.updatedevents, or react to aprocessedorrejectedorder? - How do I handle
profile.updated,profile.errororiban.updatedfor 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 |
Установить monerium-webhooks в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic