Skip to content

WebhookHandlerConfig

SIP Protocol API Reference v0.7.4


SIP Protocol API Reference / WebhookHandlerConfig

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:16055

Configuration for the Helius webhook handler

This config contains sensitive cryptographic keys. Never log, store in plain text, or transmit insecurely.

viewingPrivateKey: `0x${string}`

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:16063

Recipient’s viewing private key (hex)

SENSITIVE - This key enables detection of incoming payments. Store securely (encrypted). Never log or expose in error messages. Use environment variables or secure vault in production.


spendingPublicKey: `0x${string}`

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:16065

Recipient’s spending public key (hex)


onPaymentFound: (payment) => void | Promise<void>

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:16071

Callback when a payment is found

SolanaScanResult

The detected payment details

void | Promise<void>


optional onError: (error, transaction?) => void

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:16078

Optional callback for errors

Error

The error that occurred

HeliusWebhookTransaction

The transaction that caused the error (if available)

void


optional webhookSecret: string

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:16088

Webhook authentication secret (recommended for production)

When set, the handler will verify the X-Helius-Signature header using HMAC-SHA256 to ensure webhook payloads are authentic.

Get your webhook secret from Helius Dashboard: https://dev.helius.xyz/webhooks


optional authToken: string

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:16095

Authorization token for additional security

When set, the handler will verify the Authorization header matches this token. Use for simple auth in trusted environments.