Command Palette

Search for a command to run...

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

helius-webhooks

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

Receive and authenticate Helius Solana webhooks. Use when setting up Helius webhook handlers, checking the authHeader (Authorization header) on incoming…

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

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

Helius Webhooks

When to Use This Skill

  • How do I receive Helius webhooks?
  • How do I authenticate Helius webhook requests? (Helius does not sign payloads)
  • How do I use the Helius authHeader and check the Authorization header?
  • How do I handle NFT_SALE, SWAP or TRANSFER enhanced transaction events?
  • Why am I receiving duplicate Helius webhook events, or why was my webhook auto-disabled?

Authentication (core)

Helius webhooks have no signature: there is no HMAC, no timestamp and no signing secret. The optional authHeader you set when creating the webhook (for example Bearer your-secret-token) is sent verbatim as the Authorization header on every delivery. Compare the whole header value in constant time. The signature field in the payload is the Solana transaction signature, not a webhook signature.

const crypto = require('crypto');

// Hash both sides so timingSafeEqual always gets equal-length buffers
function verifyHeliusAuth(received, expected) {
  if (!received || !expected) return false;
  const a = crypto.createHash('sha256').update(received).digest();
  const b = crypto.createHash('sha256').update(expected).digest();
  return crypto.timingSafeEqual(a, b);
}

// Authorization header must equal the authHeader you registered, exactly
verifyHeliusAuth(req.headers.authorization, process.env.HELIUS_AUTH_HEADER);

The body is an array of transactions. Enhanced webhooks give each item a type (NFT_SALE, SWAP, TRANSFER, ...); raw webhooks omit type. Respond 200 quickly (Helius expects it within 1 second) and process asynchronously, and de-duplicate on the transaction signature because deliveries can repeat.

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

Common Event Types

Enhanced webhooks label each transaction with a type you choose in transactionTypes (or ANY):

Event (type) Triggered When Common Use Cases
NFT_SALE An NFT is sold on a marketplace Sales feeds, analytics
SWAP A token swap executes Trading bots, portfolio tracking
TRANSFER SOL or tokens move between accounts Deposit detection, wallet monitoring
NFT_LISTING An NFT is listed for sale Listing alerts
NFT_MINT An NFT is minted Mint tracking
TOKEN_MINT A token is minted (limited programs) Token launch monitoring

See references/overview.md for the full picture and Helius's transaction types list for every value.

Environment Variables

# Must match the authHeader set on the Helius webhook exactly, e.g. "Bearer <random-token>"
HELIUS_AUTH_HEADER=Bearer your-secret-token

Local Development

For local webhook testing, use Hookdeck CLI:

npx hookdeck-cli listen 3000 helius --path /webhooks/helius

No account required. Provides local tunnel + web UI for inspecting requests. Helius can't reach localhost, so point the webhook at the Hookdeck URL.

Reference Materials

  • Overview - What Helius webhooks are, webhook types, common transaction types, payload shape
  • Setup - Create a webhook in the Helius dashboard or API and set authHeader
  • Verification - Authorization header check, gotchas, retries

Examples

Recommended: webhook-handler-patterns

We recommend installing the webhook-handler-patterns skill alongside this one for handler sequence, idempotency, error handling, and retry logic. Key references (open on GitHub):

Related Skills

  • alchemy-webhooks - Alchemy blockchain webhook handling
  • [chargebee-webhooks](http
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

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

examples/express/.env.exampleexamples/express/README.mdexamples/express/jest.config.jsexamples/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/layout.tsxexamples/nextjs/app/page.tsxexamples/nextjs/app/webhooks/helius/route.tsexamples/nextjs/lib/helius.tsexamples/nextjs/next.config.jsexamples/nextjs/package.jsonexamples/nextjs/tsconfig.jsonexamples/nextjs/vitest.config.tsreferences/overview.mdreferences/setup.mdreferences/verification.md

FAQ

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

Receive and authenticate Helius Solana webhooks. Use when setting up Helius webhook handlers, checking the authHeader (Authorization header) on incoming requests, or handling enhanced transaction events like NFT_SALE, SWAP and TRANSFER.

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

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

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

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

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

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