Skip to main content

@bloock/sdk / WebhookClient

Class: WebhookClient

Provides functionality for interacting with Bloock Webhook service.

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new WebhookClient(configData?): WebhookClient

Creates a new WebhookClient with default configuration.

Parameters

NameType
configData?ConfigData

Returns

WebhookClient

Defined in

client/webhook.ts:17

Properties

bridge

Private bridge: BloockBridge

Defined in

client/webhook.ts:10


configData

Private configData: undefined | ConfigData

Defined in

client/webhook.ts:11

Methods

verifyWebhookSignature

verifyWebhookSignature(payload, header, secretKey, enforceTolerance): Promise<boolean>

Verifies the signature of a webhook payload using the provided parameters.

Parameters

NameType
payloadUint8Array
headerstring
secretKeystring
enforceToleranceboolean

Returns

Promise<boolean>

Defined in

client/webhook.ts:30