Skip to main content

Build

Helius Webhooks

HookdeckOfficialCertified

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.

  • New
  • v1.0.1
  • Reviewed Oct 21
  • No reviews yet

Capabilities

  • Authentication (core)

    Helius webhooks have no signature: there is no HMAC, no timestamp and no signing secret

  • Common Event Types

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

  • Local Development

    No account required

  • Recommended: webhook-handler-patterns

    We recommend installing the webhook-handler-patterns skill alongside this one for handler sequence…

Getting started

Full instructions

Example command

Local Development

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

Instructions: SKILL.mdv1.0.1

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.

javascript
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

bash
# 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:

bash
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

  • Express Example - Complete Express.js implementation with tests
  • Next.js Example - Next.js App Router implementation with tests
  • FastAPI Example - Python FastAPI implementation with tests

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):

  • Handler sequence — Verify first, parse second, handle idempotently third
  • Idempotency — Prevent duplicate processing
  • Error handling — Return codes, logging, dead letter queues
  • Retry logic — Provider retry schedules, backoff patterns
  • alchemy-webhooks - Alchemy blockchain webhook handling
  • chargebee-webhooks - Chargebee webhooks using Basic Auth instead of signatures
  • airtable-webhooks - Airtable webhook handling
  • circle-webhooks - Circle stablecoin and payments webhook handling
  • coinbase-commerce-webhooks - Coinbase Commerce crypto payment webhooks
  • stripe-webhooks - Stripe payment webhook handling
  • github-webhooks - GitHub repository webhook handling
  • webhook-handler-patterns - Handler sequence, idempotency, error handling, retry logic
  • hookdeck-event-gateway - Webhook infrastructure that replaces your queue — guaranteed delivery, automatic retries, replay, rate limiting, and observability for your webhook handlers

Explore more skills

Browse all
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Signing

SignedSLSA L2
Signed by
skills-hub.ai distributor
Method
Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
Key
skills-hub-ed25519-2026-11
Signed

Reviews (0)

More from Hookdeck

View source →
razorpay-webhooksReceive and verify Razorpay webhooks. Use when setting up Razorpay webhook handlers, debugging X-Razorpay-Signature verification, or handling payment events like payment.captured, payment.failed, order.paid, refund.processed, or…3 installsvercel-log-drains-webhooksReceive and verify Vercel Log Drains deliveries. Use when setting up a Vercel log drain HTTP endpoint, debugging x-vercel-signature verification, passing the drain's endpoint test, or processing batched log entries from sources like…1 installsstripe-webhooksReceive and verify Stripe webhooks. Use when setting up Stripe webhook handlers, debugging signature verification, or handling payment events like payment_intent.succeeded, customer.subscription.created, or invoice.paid.1 installsalchemy-webhooksReceive and verify Alchemy Notify webhooks. Use when setting up Alchemy webhook handlers, debugging X-Alchemy-Signature verification, or handling onchain events like ADDRESS_ACTIVITY, NFT_ACTIVITY, or GRAPHQL (Custom Webhook).1 installstiktok-webhooksReceive and verify TikTok for Developers webhooks (Login Kit, Content Posting, Data Portability). Use when setting up TikTok webhook handlers, debugging TikTok-Signature verification, or handling events like authorization.removed,…1 installsfedex-webhooksReceive and verify FedEx Advanced Integrated Visibility (AIV) shipment tracking webhooks. Use when setting up an AIV webhook or "Try this webhook" in the FedEx Developer Portal, verifying the fdx-signature header (base64 HMAC-SHA256 of the…1 installs

Frequently asked questions about helius-webhooks

What does the helius-webhooks skill do?

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. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the helius-webhooks skill?

Run `npx @skills-hub-ai/cli install hookdeck-helius-webhooks` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/hookdeck-helius-webhooks/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does helius-webhooks work with?

helius-webhooks runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the helius-webhooks skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use helius-webhooks after installing it?

In Claude Code, type `/hookdeck-helius-webhooks` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the helius-webhooks skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.

Badge for your README

Show that this skill is on Skills Hub. The badge links back to this page and shows the live install count.

Install on Skills Hub badge preview
Markdown
[![Install on Skills Hub](https://skills-hub.ai/api/badges/skill/hookdeck-helius-webhooks)](https://skills-hub.ai/skills/hookdeck-helius-webhooks)
HTML
<a href="https://skills-hub.ai/skills/hookdeck-helius-webhooks"><img src="https://skills-hub.ai/api/badges/skill/hookdeck-helius-webhooks" alt="Install on Skills Hub"></a>

More options in the badge docs.