Webhooks
Webhooks enable real-time notifications when events occur in your AxonVault account, such as transaction confirmations or failures.Supported Events
| Event | Description |
|---|---|
transaction.pending | Transaction submitted to network |
transaction.confirmed | Transaction confirmed on chain |
transaction.failed | Transaction failed or reverted |
approval.requested | Transaction requires approval |
approval.approved | Transaction approved |
approval.rejected | Transaction rejected |
Creating a Webhook
Webhook Payload
Verifying Webhooks
Always verify webhook signatures to ensure authenticity:Handling Events
Retry Policy
AxonVault retries failed webhook deliveries with exponential backoff:| Attempt | Delay |
|---|---|
| 1 | Immediate |
| 2 | 1 minute |
| 3 | 5 minutes |
| 4 | 30 minutes |
| 5 | 2 hours |
Viewing Webhook History
Best Practices
Respond Quickly
Respond Quickly
Return a 200 response within 5 seconds. Process events asynchronously:
Handle Duplicates
Handle Duplicates
Webhooks may be delivered multiple times. Use
messageId for idempotency:Monitor Failures
Monitor Failures
Set up alerts for webhook failures:
- Monitor HTTP status codes
- Track retry counts
- Alert on repeated failures