cryptoprocessing-webhooks
БесплатноЗапускает вложенные скриптыНе проверенReceive and verify CryptoProcessing (CoinsPaid) callbacks. Use when setting up a CryptoProcessing callback endpoint, verifying the X-Processing-Signature…
от hookdeck★ 104 звезды на GitHubОб этом скилле
CryptoProcessing Webhooks
When to Use This Skill
- How do I receive CryptoProcessing (CoinsPaid) webhook callbacks?
- How do I verify the CryptoProcessing
X-Processing-Signatureheader? - Why is my CryptoProcessing webhook signature verification failing?
- How do I handle
deposit,withdrawal,exchangeorpayment_requestcallbacks? - Which secret signs CryptoProcessing callbacks, and what happens when I rotate it?
Verification (core)
CryptoProcessing sends every callback to the single callback URL set in the merchant portal. Each delivery carries:
X-Processing-Signature— lowercase hex HMAC-SHA512 (128 characters, no prefix) of the raw request bodyX-Processing-Key— the Master API key (public part) that signed the callback
The key is the secret key of your active Master API key, used as UTF-8 bytes. Nothing but the body is signed: no timestamp, id or other header, so there is no replay window to check.
Paste the secret key of your active Master API key. Rotating that key changes the callback secret.
Only the active Master key signs callbacks; custom keys never do. While no Master key is active, CryptoProcessing sends no callbacks; they go out once you activate one, signed with the new key's secret, so update the secret as soon as you activate it.
const crypto = require('crypto');
function verifyCryptoProcessingSignature(rawBody, signature, secret) {
if (!signature || !secret) return false;
// Validate length and alphabet first: Buffer.from(hex) silently drops bad characters
if (!/^[0-9a-fA-F]{128}$/.test(signature)) return false;
const expected = crypto.createHmac('sha512', secret).update(rawBody).digest();
return crypto.timingSafeEqual(Buffer.from(signature.toLowerCase(), 'hex'), expected);
}
rawBody must be the exact bytes received (a Buffer), never re-serialized JSON. In Express use express.raw({ type: '*/*' }); in Next.js await request.arrayBuffer(); in FastAPI await request.body(). Answer a missing, malformed or wrong signature with 401.
Docs test vector: secret AbCdEfG123456, body {"currency":"BTC","foreign_id":"123456"} gives 03c25fcf7cd35e7d995e402cd5d51edd72d48e1471e865907967809a0c189ba55b90815f20e2bb10f82c7a9e9d865546fda58989c2ae9e8e2ff7bc29195fa1ec.
For complete handlers with tests, see examples/express/, examples/nextjs/, examples/fastapi/.
Common Event Types
There is no event header. Dispatch on the body's top-level type (the kind of transaction); status is its new state, which depends on the kind: deposits not_confirmed, confirmed, cancelled; withdrawals pending, confirmed, declined, cancelled; exchanges confirmed only; payment requests processing, paid, expired, failed; invoices pending, processing, confirmed, failed. A router needs both.
type |
Meaning |
|---|---|
deposit |
Crypto received on one of your deposit addresses |
withdrawal |
Crypto sent out to an external address |
exchange |
Exchange made with /v2/exchange/fixed or /v2/exchange/now completed |
payment_request |
Payment request created through the API changes status |
deposit_exchange |
Deposit that is converted on arrival |
deposit_wallet_client |
Deposit to a merchant top-up address (needs business wallet transactions callbacks) |
withdrawal_exchange |
Withdrawal funded by a conversion |
withdrawal_instant |
Instant withdrawal |
withdrawal_instant_exchange |
Instant withdrawal funded by a conversion |
invoice |
Legacy invoice |
Handle the ones you use and log the rest. See references/overview.md.
Delivery
Only an HTTP 200 stops delivery. Otherwise CryptoProcessing retries 12 times after the first attempt (+1, +5, +15, +30, +60, +90, +120, +180 minutes, then +240 minutes four times); the schedule is not configurable. Answer a duplicate of a callback you already processed with 201 to stop its retries.
Don't treat type + id + status as unique. Invoices send pending again for each partial payment and payment requests send processing again for each detected transaction, so compare the txids in transactions: a new txid is a new payment. Exchange callbacks have no txid; use the exchange id and status. The portal's Repeat callback button (Transactions > a transaction > Callback tab) resends a transaction's latest callback.
Environment Variables
CRYPTOPROCESSING_WEBHOOK_SECRET=your-master-api-key-secret # secret key of the ACTIVE Master API key
Local Development
# Start tunnel (no account needed)
npx hookdeck-cli listen 3000 cryptoprocessing --path /webhooks/cryptoprocessing
Reference Materials
- references/overview.md - Callback kinds, event types, payload shape, delivery and retries
- references/setup.md - Set the callback
Установить cryptoprocessing-webhooks в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл cryptoprocessing-webhooks?
Receive and verify CryptoProcessing (CoinsPaid) callbacks. Use when setting up a CryptoProcessing callback endpoint, verifying the X-Processing-Signature header (HMAC-SHA512 hex of the raw body), debugging signature verification failures, or handling deposit, withdrawal, exchange and payment_request crypto payment callbacks.
Как установить скилл cryptoprocessing-webhooks?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл cryptoprocessing-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