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★ 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-SHA256header? (create a webhook secret first) - How do I verify
X-Signature-SHA256? - How do I test with simulated webhooks?
- How do I handle
transfernotifications?
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/secretagain rotates the secret (at most once every 5 minutes). UpdateBITGO_WEBHOOK_SECRETat 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
401on 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
Установить bitgo-webhooks в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic