Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

bitgo-webhooks

БесплатноЗапускает вложенные скриптыНе проверен

Receive and verify BitGo webhooks. Use when creating a webhook secret (POST /api/v2/webhook/secret), verifying the X-Signature-SHA256 header (hex…

hookdeckот hookdeck★ 104 звезды на GitHub

Об этом скилле

BitGo Webhooks

BitGo sends a POST to your URL when wallet, enterprise, organization or block events happen: transfers in and out of a wallet, pending approvals, transaction request changes and more. You add webhooks with the API (for example POST /api/v2/{coin}/wallet/{walletId}/webhooks).

When to Use This Skill

  • How do I receive BitGo webhooks?
  • Why is there no X-Signature-SHA256 header? (create a webhook secret first)
  • How do I verify X-Signature-SHA256?
  • How do I test with simulated webhooks?
  • How do I handle transfer notifications?

Verification (core)

BitGo's webhooks overview: "Webhook notifications utilize your key in conjunction with an HMAC hashing algorithm (x-signature-sha256) to create a cryptographic hash." The key is the secret returned by POST /api/v2/webhook/secret, one per enterprise or organization. Until that secret exists, BitGo sends no signature.

Part Value
Header X-Signature-SHA256
Value 64 lowercase hex characters (^[0-9a-f]{64}$), no prefix
Key The webhook secret from POST /api/v2/webhook/secret
Signed content The notification payload

The local check is inferred. BitGo documents one way to verify: send the header and the payload "as JSON string" to POST /api/v2/webhook/{webhookId}/verify, which returns { webhookId, isValid }. BitGoJS has no verification code. The examples compute a hex HMAC-SHA256 of the raw body, keyed with the secret as text, which matches the header name, the value format and the receivers that verify BitGo deliveries. Before you rely on it, confirm it once against the verify endpoint (see references/verification.md).

const crypto = require('crypto');

function verifyBitGoSignature(rawBody, signature, secret) {   // rawBody: exact bytes
  const value = String(signature || '').trim();
  if (!secret || !/^[0-9a-fA-F]{64}$/.test(value)) return false;
  const expected = crypto.createHmac('sha256', secret).update(rawBody).digest();
  return crypto.timingSafeEqual(Buffer.from(value, 'hex'), expected);
}
  • Raw body. HMAC the bytes as received.
  • Rotation. POST /api/v2/webhook/secret again rotates the secret (at most once every 5 minutes). Update BITGO_WEBHOOK_SECRET at the same time.
  • Watch your 4xx count. BitGo auto-blocks a destination URL after 10 non-retryable 4xx responses within 1 hour, for every webhook on that URL. A wrong secret makes this handler return 401 on every delivery, so fix configuration errors quickly.
  • Bad or missing signature: 401. Secret not set: 500.

For complete handlers with tests, see examples/express/, examples/nextjs/, examples/fastapi/.

Python uses hmac.new(secret.encode(), raw_body, hashlib.sha256), bytes.fromhex and hmac.compare_digest.

Hookdeck: the BitGo source type (BITGO) verifies X-Signature-SHA256. Paste the secret from POST /api/v2/webhook/secret as-is. Verification is optional on the source, and Hookdeck applies no timestamp window.

Payload

A transfer notification names the wallet, coin, transfer ID, transaction hash and state:

{
  "type": "transfer",
  "wallet": "62c5b5c9d0ece30007cec9616ff29edc",
  "coin": "tbtc4",
  "transfer": "68531ea4e3669330070c95e454f5b366",
  "hash": "db924f4cf2347ac5a6b464d3e8dc4a20cffc117eb29f4460645fbc34de171bfb",
  "state": "confirmed"
}

BitGo "strongly recommends" fetching the transfer (or block) from its API before you process a notification. Simulated notifications carry "simulation": true.

Wallet Webhook Types

Type Fires when
transfer A transfer goes into or out of the wallet
transaction A transaction is recorded on chain
pendingapproval A wallet event needs approval
txRequest, txRequestTransaction A transaction request, or a transaction inside one, changes state
address_confirmation A wallet address initialises on chain (ETH, XRP)
admin, circuitBreaker, lowFee, lowFeeAddressBalance, stuckTx, transactionExpire, transactionRemoved, transaction_finality_on_l1 See references/overview.md

Enterprise, organization and block webhooks are created with their own endpoints.

Environment Variables

BITGO_WEBHOOK_SECRET=your-webhook-secret   # from POST /api/v2/webhook/secret

Local Development

# Express / Next.js (use 8000 for FastAPI). No install or account required.
npx hookdeck-cli listen 3000 bitgo --path /webhooks/bitgo

Add a webhook with the printed URL, then call the wallet webhook's simulate endpoint with {"usePlaceholderData": true}. See references/setup.md.

Reference Materials

  • [references/overview.md](reference
Полный SKILL.md на GitHub

Установить bitgo-webhooks в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

examples/express/.env.exampleexamples/express/README.mdexamples/express/package.jsonexamples/express/src/index.jsexamples/fastapi/.env.exampleexamples/fastapi/README.mdexamples/fastapi/main.pyexamples/fastapi/requirements.txtexamples/fastapi/test_webhook.pyexamples/nextjs/.env.exampleexamples/nextjs/README.mdexamples/nextjs/app/webhooks/bitgo/route.tsexamples/nextjs/lib/verify-bitgo.tsexamples/nextjs/package.jsonexamples/nextjs/vitest.config.tsreferences/overview.mdreferences/setup.mdreferences/verification.md

FAQ

Что делает скилл bitgo-webhooks?

Receive and verify BitGo webhooks. Use when creating a webhook secret (POST /api/v2/webhook/secret), verifying the X-Signature-SHA256 header (hex HMAC-SHA256), cross-checking with BitGo's Verify Webhook Notification endpoint, simulating wallet webhooks, or handling transfer, pendingapproval, txRequest and block notifications.

Как установить скилл bitgo-webhooks?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл bitgo-webhooks запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить bitgo-webhooks с