Export via WebHook

You could use Exporter to send webhook. Note you need to give the channel name Notification Channel in the exporter (Config on the UI).

const exporter = Exporter.register("SwapEvents", "WebhookChannel")

Note, the WebhookChannel should be replaced by the name you created on UI

To send webhook, use:

exporter.emit(ctx, {evt})

For configuring the notification channel, please refer to Notification Channel

For understanding the webhook message, please refer to Webhook

Last updated