@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
Name | Type |
---|---|
configData? | ConfigData |
Returns
Defined in
Properties
bridge
• Private
bridge: BloockBridge
Defined in
configData
• Private
configData: undefined
| ConfigData
Defined in
Methods
verifyWebhookSignature
▸ verifyWebhookSignature(payload
, header
, secretKey
, enforceTolerance
): Promise
<boolean
>
Verifies the signature of a webhook payload using the provided parameters.
Parameters
Name | Type |
---|---|
payload | Uint8Array |
header | string |
secretKey | string |
enforceTolerance | boolean |
Returns
Promise
<boolean
>