utila-webhooks
БесплатноЗапускает вложенные скриптыНе проверенReceive and verify Utila webhooks. Use when setting up Utila webhook handlers, debugging x-utila-signature RSA/PSS verification, or handling Utila…
от hookdeck★ 104 звезды на GitHubОб этом скилле
Utila Webhooks
Utila is a digital-asset operations platform. Webhooks notify your endpoint when transactions and wallets change state so you can reconcile them against the Utila API. Verification is asymmetric RSA, not HMAC — there is no shared secret.
When to Use This Skill
- How do I receive Utila webhooks?
- How do I verify the
x-utila-signatureheader? - Why is my Utila signature verification failing?
- How do I handle
TRANSACTION_CREATEDorTRANSACTION_STATE_UPDATEDevents? - How do I configure a webhook in the Utila Console?
How Verification Works
Utila signs each delivery with an RSA-4096 private key using SHA-512 and
PSS padding, base64-encodes the result, and sends it in the x-utila-signature
header. You verify with Utila's PEM-encoded RSA-4096 public key, copied from the
Console (Vault Settings → Webhooks). Key facts:
- No shared secret / no HMAC. You hold only the public key.
- Not Standard Webhooks. There is no
webhook-id/webhook-timestampheader. - No timestamp header, so Utila provides no built-in replay protection — dedupe
on the event
idand treat deliveries as idempotent. - Always verify over the raw request body (exact bytes), before JSON parsing.
Verification (core)
const crypto = require('crypto');
// signatureB64: the raw x-utila-signature header value.
// rawBody: the exact request bytes (Buffer), NOT parsed JSON.
// publicKeyPem: Utila's PEM RSA-4096 PUBLIC key from the Console.
function verifyUtilaSignature(rawBody, signatureB64, publicKeyPem) {
if (!signatureB64) return false;
try {
return crypto.verify(
'sha512',
rawBody,
{
key: publicKeyPem,
padding: crypto.constants.RSA_PKCS1_PSS_PADDING,
saltLength: crypto.constants.RSA_PSS_SALTLEN_AUTO, // auto-detect PSS salt
},
Buffer.from(signatureB64, 'base64')
);
} catch {
return false; // malformed key/signature = not authentic
}
}
For complete handlers with tests, see examples/express/, examples/nextjs/, examples/fastapi/.
Common Event Types
Utila emits exactly five event types (SCREAMING_SNAKE_CASE), delivered in the
payload's type field:
| Event | Triggered When |
|---|---|
TRANSACTION_CREATED |
A new transaction is created |
TRANSACTION_STATE_UPDATED |
A transaction changes state (e.g. signing, completed, failed) |
WALLET_CREATED |
A new wallet is created |
WALLET_ADDRESS_CREATED |
A new address is generated for a wallet |
TRANSACTION_AML_SCREENING_RESULT_READY |
An AML screening result becomes available |
Payloads are thin — they carry identifiers (id, vault, type,
resourceType, resource, optional details), not the full resource. Fetch the
complete object from the Utila API / Stream using the resource path.
See references/overview.md for the full payload shape.
Environment Variables
| Variable | Description |
|---|---|
UTILA_WEBHOOK_PUBLIC_KEY |
Utila's PEM-encoded RSA-4096 public key (from the Console). |
The PEM is multi-line. Store it either as a real multi-line value or with escaped
\n newlines — the examples normalize \n back to real newlines.
SDK note: Utila documents an npm package
@utila/api, but it does not currently resolve on the public registry, and there is no Python SDK. The examples therefore verify manually with the platform crypto libraries (Nodecrypto, Pythoncryptography).
Local Development
For local webhook testing, run the Hookdeck CLI via npx — no install required:
npx hookdeck-cli listen 3000 utila --path /webhooks/utila
No account required — the CLI creates a guest account on first run and provides a local tunnel + web UI for inspecting requests.
Reference Materials
- references/overview.md — What Utila webhooks are, event types, payload structure
- references/setup.md — Configure webhooks in the Utila Console, get the public key
- references/verification.md — RSA/PSS signature verification details and gotchas
- examples/express/ — Express (Node.js) handler + tests
- examples/nextjs/ — Next.js App Router handler + tests
- examples/fastapi/ — FastAPI (Python) handler + tests
Recommended: webhook-handler-patterns
Install webhook-handler-patterns alongside this skill for cross-cutting concerns. Utila sends no timestamp, so idempotency matters especially:
Установить utila-webhooks в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл utila-webhooks?
Receive and verify Utila webhooks. Use when setting up Utila webhook handlers, debugging x-utila-signature RSA/PSS verification, or handling Utila digital-asset events like TRANSACTION_CREATED, TRANSACTION_STATE_UPDATED, WALLET_CREATED, WALLET_ADDRESS_CREATED, and TRANSACTION_AML_SCREENING_RESULT_READY.
Как установить скилл utila-webhooks?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл utila-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