polygon-technology-webhooks
БесплатноЗапускает вложенные скриптыНе проверенReceive and verify Polygon Technology OMS payments webhooks (stablecoin payments and orchestration at docs.polygon.technology/payments). Use when registering…
от hookdeck★ 104 звезды на GitHubОб этом скилле
Polygon Technology Webhooks
Polygon Technology's OMS payments platform (stablecoin payments: customers, deposit addresses, virtual accounts, transactions, transfers, payouts) delivers signed webhooks for state changes. See the Receiving webhooks guide.
Not this skill: Polygon PoS chain events (blocks, logs, token transfers) come from third parties such as Alchemy or QuickNode, not from OMS. polygon.io is an unrelated market-data company.
When to Use This Skill
- How do I receive Polygon Technology OMS webhooks?
- How do I verify the OMS
Webhook-Signatureheader? - Is this Standard Webhooks? (No. Only
Webhook-Signature: there is nowebhook-idorwebhook-timestampheader, and the key is used as-is.) - Why does signature verification fail? (parsed JSON instead of raw body, base64 instead of hex, missing
<t>.prefix, clock skew) - How do I handle
transaction.statusChangedandtransfer.statusChanged? - How do I recover deliveries after my endpoint was down or the webhook was suspended?
Verification (core)
Webhook-Signature: t=1767225600,v1=5d41402abc4b2a76b9719d911017c592...
v1 is the lowercase hex HMAC-SHA256 of <t>.<raw request body>, keyed with the signingKey from POST /webhooks as UTF-8 bytes (no whsec_ prefix, no decoding). Reject when |now - t| > 300 seconds: stale and future-dated timestamps alike.
const crypto = require('crypto');
function verifyOmsSignature(rawBody, header, signingKey, now = Math.floor(Date.now() / 1000)) {
const parts = new Map();
for (const kv of String(header || '').split(',')) {
const i = kv.indexOf('=');
if (i > 0) parts.set(kv.slice(0, i).trim(), kv.slice(i + 1).trim());
}
const t = parts.get('t'), v1 = parts.get('v1'); // by key, never by position
if (!signingKey || !/^\d+$/.test(t || '') || !/^[0-9a-f]{64}$/i.test(v1 || '')) return false;
if (Math.abs(now - Number(t)) > 300) return false; // both directions
const expected = crypto.createHmac('sha256', signingKey)
.update(`${t}.`).update(rawBody).digest(); // rawBody: exact bytes
const received = Buffer.from(v1, 'hex');
return received.length === expected.length && crypto.timingSafeEqual(received, expected);
}
Python: hmac.new(key.encode(), f"{t}.".encode() + raw_body, hashlib.sha256).hexdigest() and hmac.compare_digest. There's no official verification SDK: every example verifies manually, as the OMS docs do.
For complete handlers with tests, see examples/express/, examples/nextjs/, examples/fastapi/.
- Raw body. Express:
express.raw({ type: 'application/json' }). Next.js:await request.text(). FastAPI:await request.body(). - Bad signature:
401(as the docs do). Missing key:500. Any non-2xx is retried. - Key shown once. To read it again, retry the original
POST /webhookswith the sameIdempotency-Keyand body.POST /webhooks/{webhookId}/rotate-keykills the old key immediately, with no overlap: deploy the new key at the same moment or deliveries in between fail (they're retried, so they recover once the key matches). - No handshake, no challenge, no documented IP allowlist.
Handling Deliveries
Every body has six fields: id (evt_…), idempotencyKey, type, createdAt, schema ("v1"), data. Route on type, then read data.resource (the GET shape, empty lists left out). *.statusChanged adds data.previousStatus; *.updated adds data.changedFields. Absent fields are left out, never null.
- Respond before you process.
timeoutMsdefaults to 5000 (max 10000). A slow 2xx counts as failed and is retried. - Dedupe on
idandidempotencyKey. Delivery is at-least-once; the same change is occasionally emitted twice with differentids. - Order by
createdAtper resource. Deliveries are parallel and unordered. Apply only ifcreatedAtis newer than the last applied; the strings compare correctly as text. - Tolerate the unknown. Unknown
type: return 2xx and ignore. UnknownsubStatus: use the part before the dot.schemanot"v1": pre-v1 event, ignore or handle separately.
Event Types
26 types across 9 resources. Each sends created, statusChanged and updated, except transaction (no transaction.updated).
| Resource | Events |
|---|---|
customer |
customer.created, customer.statusChanged, customer.updated |
externalAccount |
externalAccount.created, externalAccount.statusChanged, externalAccount.updated |
counterparty |
counterparty.created, counterparty.statusChanged, counterparty.updated |
customerWallet |
customerWallet.created, customerWallet.statusChanged, customerWallet.updated |
depositAddress |
depositAddress.created, depositAddress.statusChanged, depositAddress.updated |
virtualAccount |
`vi |
Установить polygon-technology-webhooks в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл polygon-technology-webhooks?
Receive and verify Polygon Technology OMS payments webhooks (stablecoin payments and orchestration at docs.polygon.technology/payments). Use when registering an endpoint with POST /webhooks, verifying the Webhook-Signature header (t=<unix>,v1=<hex HMAC-SHA256 of "<t>.<raw body>">, 300 second window), rotating the signing key, deduplicating on id and idempotencyKey, ordering by createdAt, recovering failed or suspended deliveries, or handling events like transaction.statusChanged, transfer.statusChanged, customer.statusChanged and depositAddress.created. Not for Polygon PoS chain events or polygon.io.
Как установить скилл polygon-technology-webhooks?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл polygon-technology-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