createWebhook - SDK
This endpoint allows you to create a webhook. Note that the webhook will be created in the app network of the provided app id.
Don’t have an API key?
Start using this method in your app today. Get started for free
Description
This endpoint allows you to create a webhook.
Note that the webhook will be created in the app network of the provided app id.
Parameters
params
Parameters
Include only one of these params
objects as the third parameter.
Response
DroppedTransactionWebhook
response object parameters
Example Request and Response
Prerequisite: You will need to install the Alchemy SDK before making requests with it.
The commands for installing it using npm or yarn are given below:
Request
Response
Use Cases
Here are some potential use cases for the createWebhook
method:
-
Notification of a completed transaction: If you have a web or mobile application that relies on completing transactions, you can use
createWebhook
to notify your application when a transaction is completed. This way, you can provide your users with real-time updates on the status of their transactions. -
Monitoring data changes: If you have a database or a system that stores data, you can use
createWebhook
to monitor changes in the data. This can be useful if you need to keep track of updates to customer information, inventory levels, or any other data that is important to your business. -
Real-time updates for chat applications: If you have a chat application, you can use
createWebhook
to notify your users in real-time when a new message is received or when a user has joined or left the chat.
Related Methods
-
updateWebhook: Update a
NftActivityWebhook's
active status or NFT filters. -
deleteWebhook: Delete a webhook.