Lux Docs

Webhooks

Event-driven notifications for blockchain activity

Webhooks deliver real-time notifications when blockchain events occur. Configure a webhook URL to receive HTTP POST callbacks for transfers, contract events, and more.

Create a Webhook

curl -X POST https://api.lux.cloud/v1/webhooks \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://example.com/hook",
    "events": ["transfer", "contract_event"],
    "chain": "lux",
    "filters": {
      "address": "0x9011E888251AB053B7bD1cdB598Db4f9DEd94714"
    }
  }'

Event Types

EventDescription
transferNative token transfer (LUX, ETH)
erc20_transferERC-20 token transfer
erc721_transferNFT transfer
erc1155_transferMulti-token transfer
contract_eventAny contract event log
new_blockNew block produced

Webhook Payload

{
  "id": "evt-abc123",
  "event": "transfer",
  "chain": "lux",
  "blockNumber": 12345,
  "txHash": "0xabc...",
  "from": "0x...",
  "to": "0x...",
  "value": "1000000000000000000",
  "timestamp": "2026-03-22T10:00:00Z"
}

Manage Webhooks

# List webhooks
curl https://api.lux.cloud/v1/webhooks \
  -H "Authorization: Bearer YOUR_API_KEY"

# Delete a webhook
curl -X DELETE https://api.lux.cloud/v1/webhooks/wh-abc123 \
  -H "Authorization: Bearer YOUR_API_KEY"

Retry Policy

Failed deliveries are retried with exponential backoff:

AttemptDelay
1Immediate
230 seconds
32 minutes
410 minutes
51 hour

After 5 failures, the webhook is disabled. Re-enable it via the API.

On this page