Skip to content

processWebhookTransaction()

SIP Protocol API Reference v0.7.4


SIP Protocol API Reference / processWebhookTransaction

processWebhookTransaction(transaction, viewingPrivateKey, spendingPublicKey): Promise<SolanaScanResult | null>

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

Process a single webhook transaction and check if it’s a payment for us

Lower-level function for custom webhook handling.

HeliusWebhookTransaction

Raw Helius webhook transaction

`0x${string}`

Recipient’s viewing private key

`0x${string}`

Recipient’s spending public key

Promise<SolanaScanResult | null>

Payment result if found, null otherwise

const payment = await processWebhookTransaction(
webhookPayload,
viewingPrivateKey,
spendingPublicKey
)
if (payment) {
console.log('Found payment:', payment.amount, payment.mint)
}