coinbase-webhooks
БесплатноЗапускает вложенные скриптыНе проверенReceive and verify Coinbase Developer Platform (CDP) webhooks. Use when setting up CDP webhook handlers, debugging X-Webhook-Signature verification…
от hookdeck★ 104 звезды на GitHubОб этом скилле
Coinbase (CDP) Webhooks
This skill covers Coinbase Developer Platform (CDP) webhooks v2 (docs.cdp.coinbase.com/webhooks): wallet transactions, onchain activity on Base, transfers and onramp/offramp. All CDP webhook domains share one delivery system and one signature scheme.
Coinbase Commerce (crypto payment processing,
X-CC-Webhook-Signature) is a different product. Use coinbase-commerce-webhooks for that. CDP Webhooks v1 is deprecated as of January 26th, 2026. See the v2 upgrade guide.
When to Use This Skill
- How do I verify the CDP
X-Webhook-Signatureheader? - Why does my Coinbase webhook signature verification fail?
- How do I receive onchain contract events or ERC-20 transfers on Base?
- How do I track CDP wallet transactions (pending, confirmed, failed)?
- How do I handle
payments.transfers.completedor onramp/offramp events?
Verification (core)
X-Webhook-Signature (deprecated alias with the same value: X-Hook0-Signature) looks like
t=1728394718,v0=<hex>,h=content-type x-event-id x-event-type,v1=<hex>, with the parts
in any order. Both digests are hex HMAC-SHA256, keyed with the subscription
secret as plain UTF-8. There's no prefix and no base64 decoding.
v0= HMAC({t}.{rawBody})v1= HMAC({t}.{h}.{values of the h headers joined by "."}.{rawBody})
const parts = Object.fromEntries(sigHeader.split(',').map((p) => {
const i = p.indexOf('='); return [p.slice(0, i).trim(), p.slice(i + 1).trim()];
}));
const MAX_AGE_SECONDS = 5 * 60; // configurable; CDP retries late, so pair with idempotency
if (!/^\d+$/.test(parts.t ?? '') || Number(parts.t) <= 0) return false;
if (Math.abs(Date.now() / 1000 - Number(parts.t)) > MAX_AGE_SECONDS) return false;
let prefix, provided;
if (parts.v1 && parts.h) {
const values = parts.h.split(' ').filter(Boolean).map((n) => getHeader(n.toLowerCase()) ?? '').join('.');
[prefix, provided] = [`${parts.t}.${parts.h}.${values}.`, parts.v1];
} else {
[prefix, provided] = [`${parts.t}.`, parts.v0];
}
if (!/^[0-9a-f]{64}$/i.test(provided ?? '')) return false; // timingSafeEqual throws on length mismatch
const expected = crypto.createHmac('sha256', secret).update(prefix).update(rawBody).digest();
return crypto.timingSafeEqual(expected, Buffer.from(provided, 'hex'));
The examples verify v1 when the header has both v1= and h=, otherwise v0.
v1 is documented on both CDP verification pages. v0 is only documented on /webhooks/verify-signatures,
which recommends it for most uses. If a proxy rewrites any header named in h, switch
to v0 (the examples take a scheme: 'v0' option).
For complete handlers with tests, see examples/express/, examples/nextjs/, examples/fastapi/.
Events
Route on the X-Event-Type header. Fall back to the body's type, then eventType.
| Domain | Event types |
|---|---|
| Wallet transactions | wallet.transaction.created, wallet.transaction.signed, wallet.transaction.broadcast, wallet.transaction.pending, wallet.transaction.replaced, wallet.transaction.confirmed, wallet.transaction.failed |
| Wallet signing / delegation | wallet.typed_data.signed, wallet.message.signed, wallet.hash.signed, wallet.delegation.created, wallet.delegation.revoked |
| Onchain activity (Base) | onchain.activity.detected, wallet.activity.detected, wallet.activity.multi |
| Transfers | payments.transfers.quoted, payments.transfers.processing, payments.transfers.completed, payments.transfers.failed, payments.transfers.expired (example-payloads page only; quote expired, data.status stays "quoted") |
| Onramp / Offramp | onramp.transaction.created, onramp.transaction.updated, onramp.transaction.success, onramp.transaction.failed, offramp.transaction.created, offramp.transaction.updated, offramp.transaction.success, offramp.transaction.failed |
CDP also documents Customers (customers.*) and Payment Acceptance (acceptance.*, oauth.*, identity.user.*) webhooks. They use the same signature scheme, so the verifier works unchanged and the examples acknowledge them through the default branch. See references/overview.md.
Body shapes differ by domain. Don't write one envelope type for all of them:
- Wallet events are flat snake_case. Solana uses
transaction_signatureinstead oftransaction_hash. - Transfers use
{ eventID, eventType, timestamp, data }(note the capital-DeventID). - Onramp/offramp bodies are flat camelCase with
eventTypein the body. wallet.activity.multiis{ id, type, createdAt, data }. Itsvalueis the raw token amount.onchain.activity.detectedis documented two ways: flat
Установить coinbase-webhooks в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл coinbase-webhooks?
Receive and verify Coinbase Developer Platform (CDP) webhooks. Use when setting up CDP webhook handlers, debugging X-Webhook-Signature verification (HMAC-SHA256 hex over t/h/v0/v1), or handling onchain.activity.detected, wallet.transaction.*, wallet.activity.multi, payments.transfers.* and onramp/offramp events.
Как установить скилл coinbase-webhooks?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл coinbase-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