Webhooks
Last updated
Last updated
The webhook functionality in our application allows users to receive real-time updates on their user operations (userOps) via their own API endpoints. When a user creates a webhook, they provide their API URL where our system will send status updates once the userOp is successfully executed on the blockchain.
Detailed instructions for creating a webhook and integrating it into your system are provided below.
The following steps outline how to create a webhook:
Login to Byzanlink dashboard
Go to the Webhooks page under the Services section in the side menu, then click on Create Webhook.
Provide the inputs for all the fields and click Save
Once the webhook is created, you will be redirected to All Webhooks screen.
Click the Play button under Action column next to a specific table row to verify the API endpoint provided in the Webhook URL. If successful, you’ll see the message Webhook tested successfully!. If the test fails, the message Webhook Fetch Failed will appear, and you’ll need to provide a valid URL.
Edit and Delete functionality are also available under Action column
Once a user operation is submitted, the webhook monitors for updates. After the user operation is successfully executed, the API URL provided in the webhook will receive a response containing the userOp hash (transactionHash
) and the transaction receipt object (transactionReceipt
). In case of a failure or cancellation, the response will include a message key detailing the reason for the failure or cancellation.