Skip to content

WebhookHandlerConfig

SIP Protocol API Reference v0.15.1


SIP Protocol API Reference / WebhookHandlerConfig

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:16159

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-GLbkPPho.d.ts:16167

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-GLbkPPho.d.ts:16169

Recipient’s spending public key (hex)


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

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:16175

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-GLbkPPho.d.ts:16182

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-GLbkPPho.d.ts:16192

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-GLbkPPho.d.ts:16199

Authorization token for additional security

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