Skip to main content
POST
Register webhook endpoints to receive real-time notifications about transaction status changes. Webhooks are essential for tracking private mode transactions that may take 30-120 seconds to complete.

Request Body

string
required
Your webhook endpoint URL (must be HTTPS)
array
required
Array of event types to subscribe to:
  • transaction.pending
  • transaction.confirmed
  • transaction.completed
  • transaction.failed
string
Secret key for webhook signature verification (recommended)

Response

string
Unique webhook identifier
string
Your webhook endpoint URL
array
Subscribed event types
string
Webhook creation timestamp (ISO 8601)

Webhook Events

Event Types

transaction.pending

Transaction submitted to network

transaction.confirmed

Transaction confirmed on-chain

transaction.completed

Transaction fully processed (final state)

transaction.failed

Transaction failed or reverted

Event Payload

All webhook events include this payload structure:

Webhook Security

Signature Verification

Webhooks include a signature header for verification:
Verification Example:

Security Best Practices

1

Use HTTPS

Webhook URLs must use HTTPS for security
2

Verify Signatures

Always verify webhook signatures to prevent spoofing
3

Validate Payload

Check that transaction IDs match your records
4

Idempotency

Handle duplicate webhook deliveries gracefully

Webhook Endpoint Requirements

Response Requirements

Your webhook endpoint must:
  • Respond with HTTP 200 status code
  • Respond within 10 seconds
  • Return any response body (ignored)

Retry Policy

Failed webhook deliveries are retried with exponential backoff: After 6 failed attempts, webhook delivery is abandoned.

Testing Webhooks

Webhook Testing Tool

Use tools like ngrok for local development:

Test Events

You can trigger test webhook events:

Managing Webhooks

List Webhooks

Update Webhook

Delete Webhook

Error Responses

string
Error code identifier
string
Human-readable error message
object
Additional error context

Common Errors

Rate Limits

Webhook registration is subject to rate limits:

Next Steps

Transaction Status

Learn about transaction status polling as an alternative

API Introduction

Review authentication and rate limiting details