Monitoring & Webhooks
SwiftNodes Monitoring watches EVM and UTXO addresses for you and sends a signed webhook when a native or ERC-20 transfer is confirmed. Use it for treasury alerts, deposit detection, payment reconciliation and wallet activity feeds that must keep working when your process restarts.
Monitoring & webhooks is a $19/month add-on for paid RPC plans.
It is billed for the same term as your plan: $19 for one month, $108.30 for 6 months, or $205.20 for 12 months — the same term discount crypto bundles get. Add it from Dashboard → Billing (card) or buy the plan and monitoring together at checkout (card or crypto) for one payment. A mid-term add is charged the prorated remainder of the current term immediately. Removing it takes effect at the end of the term, with no credit for unused time.
On crypto, you can also buy the plan and add-on together as one on-chain bundle at checkout, or add monitoring part-way through a crypto-paid term from Dashboard → Billing. The mid-cycle quote shows the exact prorated amount at the crypto bundle price (the plan's term discount applies); you send one payment from the wallet that bought the plan and monitoring turns on automatically through the term end. Crypto add-ons are one-time and do not auto-renew. Wrong-wallet, underpaid and late payments are not activated automatically and go to support with the quote and transaction already recorded. A failed add-on payment suspends only the add-on while the plan continues.
How it works
- You create a monitor with one address family, the addresses to watch, the event types you want, and a confirmation depth. EVM chains share one family, so a monitor can cover several EVM chains at once; each UTXO chain is its own family and needs its own monitor.
- For EVM chains we read blocks from the network and match native transfers and ERC-20
Transferlogs that involve a watched address. For UTXO chains we read blocks from Blockbook and match transaction inputs and outputs. - Once the block is buried under your confirmation depth, we POST a JSON event to your webhook and retry transient failures.
- Your dashboard shows the monitor, its recent deliveries, attempts and the last error.
Address families
A monitor has one address list and applies it to every chain it watches, so all chains in a monitor must use the same address format. All EVM chains use the same 20-byte 0x address and can be combined. Bitcoin, Litecoin, Dogecoin, Bitcoin Cash and Zcash each use a different encoding, so each one can only be monitored on its own.
| Family | Chains | Accepted addresses |
|---|---|---|
| evm | All EVM chains | 0x + 40 hex characters. Case-insensitive; stored lowercase. |
| btc | Bitcoin | 1…, 3…, bech32 and bech32m bc1…. |
| ltc | Litecoin | L…, M…, legacy 3…, ltc1…. |
| doge | Dogecoin | D… (P2PKH), A… (P2SH). |
| bch | Bitcoin Cash | CashAddr bitcoincash:q… or bare q…, and legacy 1…/3…. |
| zec | Zcash | Transparent t1… or t3…. Shielded addresses (zs…, zc…, u1…) cannot be indexed. |
Base58 addresses are case-sensitive.
Do not change the case of a Bitcoin, Litecoin, Dogecoin, legacy Bitcoin Cash or Zcash address; an upper-case letter and its lower-case form are different addresses. The dashboard pastes and stores them exactly as entered. The API rejects a monitor that mixes address families with HTTP 400 and code: address_family_mismatch, and a wrong-format address with code: invalid_address.
Set up a monitor
1. Build the receiving endpoint
Your endpoint should:
- Be a publicly reachable HTTPS URL that accepts
POSTrequests withapplication/json. - Read the raw request body before parsing it. The signature is computed over the exact bytes we send, so re-serialising JSON will break verification.
- Verify the signature and return a 2xx response within 10 seconds.
- Queue the event and process it asynchronously if your business logic is slow.
- Deduplicate on the delivery ID, because a retry can arrive after your endpoint has already processed an event.
Use HTTPS for your endpoint. Plain HTTP is accepted only for local testing.
2. Create the monitor
In Dashboard → Monitoring, choose Create a monitor and fill in:
| Field | What it does |
|---|---|
| Name | A label for the monitor, for example “Treasury inflows”. |
| Chains | The chains to watch. A monitor can cover up to 50 EVM chains, and the picker only shows chains enabled for your account. Selecting one address family disables chains from the other families: choose EVM chains together, or one UTXO chain (BTC, LTC, DOGE, BCH or ZEC) by itself. |
| Addresses | Addresses in the selected chain’s format, one per line or comma-separated. EVM addresses are case-insensitive and stored lowercase; UTXO Base58 addresses keep their exact case. The account limit depends on your plan (see below) and is shared across active monitors. All addresses in one monitor share the same webhook URL, secret and settings. |
| Webhook URL | Where we POST each confirmed event. |
| Event types | Native transfers, ERC-20 transfers, or both. ERC-20 matching covers every Transfer log in the block, including transfers emitted during contract calls. UTXO chains deliver native transfers only. |
| Direction | Incoming, outgoing, or both, relative to each watched address. Self-transfers are always delivered. |
| Confirmations | How many blocks must build on top of the transfer before we send it (1–128). The form shows the default for the selected chain. Lower is faster but exposes you to more reorg risk. |
3. Save the signing secret
When the monitor is created, the dashboard shows its webhook secret once. Store it in your secret manager or environment variables next to the endpoint. Every monitor has its own secret; the secret is never returned again by the API.
4. Send a test event
Use Test webhook on the monitor. We send a synthetic event to your URL and show the HTTP status and round-trip time. Test requests carry X-SwiftNodes-Test: true and are not stored in delivery history.
5. Go live
Leave the monitor active. Events begin flowing as soon as a matching transfer reaches your confirmation depth. You can pause, edit or archive a monitor at any time from the same page; an archived monitor stops delivering.
Plan limits
Monitoring is an add-on. While it is in testing it follows your SwiftNodes plan, and free and test accounts use the Starter limits. The dashboard shows your live usage against these limits.
| Limit | Starter | Growth | Scale | Pro |
|---|---|---|---|---|
| Monitored addresses | 100 | 1,000 | 10,000 | 50,000 |
| Monthly events | 50,000 | 250,000 | 1,000,000 | 5,000,000 |
| Webhook endpoints | 5 | 10 | 25 | 50 |
| Delivery rate | 10/sec | 25/sec | 50/sec | 100/sec |
| Delivery history | 3 days | 7 days | 14 days | 30 days |
Monitored addresses are unique across your active monitors, and each active monitor is one webhook endpoint. Those two limits are enforced when a monitor is created, enabled, or its addresses change. Event volume and delivery rate are the plan allowances shown in the dashboard; overage handling will be finalised before the add-on is generally available.
Manage monitors with the API
The dashboard uses the same API, so anything you can do in the UI you can automate with a SwiftNodes API key. Send it in the x-api-key header (or as a bearer token). Keys keep their existing IP and origin restrictions.
# Plan, limits and current usage
curl https://rpc.swiftnodes.io/api/monitoring/limits \
-H "x-api-key: $SWIFTNODES_API_KEY"
# List your monitors
curl https://rpc.swiftnodes.io/api/monitoring/monitors \
-H "x-api-key: $SWIFTNODES_API_KEY"
# Create a monitor (secret is returned once)
curl -X POST https://rpc.swiftnodes.io/api/monitoring/monitors \
-H "x-api-key: $SWIFTNODES_API_KEY" \
-H "content-type: application/json" \
-d '{"name":"Treasury","chain_slugs":["eth","base"],
"addresses":["0x0000000000000000000000000000000000000000"],
"webhook_url":"https://example.com/webhooks/swiftnodes"}'
# Add or remove addresses without replacing the list
curl -X POST https://rpc.swiftnodes.io/api/monitoring/monitors/$MONITOR_ID/addresses \
-H "x-api-key: $SWIFTNODES_API_KEY" -H "content-type: application/json" \
-d '{"addresses":["0x1111111111111111111111111111111111111111"]}'
curl -X POST https://rpc.swiftnodes.io/api/monitoring/monitors/$MONITOR_ID/addresses/remove \
-H "x-api-key: $SWIFTNODES_API_KEY" -H "content-type: application/json" \
-d '{"addresses":["0x1111111111111111111111111111111111111111"]}'
curl -X DELETE https://rpc.swiftnodes.io/api/monitoring/monitors/$MONITOR_ID/addresses/0x1111111111111111111111111111111111111111 \
-H "x-api-key: $SWIFTNODES_API_KEY"Each monitor in the list response includes an id field. That value is the {id} used by the address endpoints above (shown there as $MONITOR_ID), and it is the same ID printed on each monitor card in the dashboard. Extract it with jq:
curl -s https://rpc.swiftnodes.io/api/monitoring/monitors \ -H "x-api-key: $SWIFTNODES_API_KEY" \ | jq -r '.monitors[] | .id + " " + .name'
A UTXO monitor uses the same endpoint with one chain and that chain’s address format. Keep the address exactly as written, including case:
curl -X POST https://rpc.swiftnodes.io/api/monitoring/monitors \
-H "x-api-key: $SWIFTNODES_API_KEY" \
-H "content-type: application/json" \
-d '{"name":"Bitcoin deposits","chain_slugs":["btc"],
"addresses":["bc1qn8tykysa7240evcudth620dlsf0cztvczpc52p"],
"webhook_url":"https://example.com/webhooks/swiftnodes"}'PATCH /api/monitoring/monitors/{id} replaces the fields you send, including the whole address list; use the address endpoints for incremental changes. A single request may carry up to 5,000 addresses. Deleting a monitor archives it, which stops delivery and releases its endpoint slot.
Webhook request
Every delivery is a single POST with these headers:
| Header | Meaning |
|---|---|
| X-SwiftNodes-Signature | t=<unix seconds>,v1=<hex HMAC>. Verify it before trusting the body. |
| X-SwiftNodes-Delivery | Delivery ID. Stable across retries; use it for idempotency. |
| X-SwiftNodes-Event | Event ID. Also present as id in the payload. |
| X-SwiftNodes-Test | true only on a test delivery. Omitted for real events. |
| Content-Type | application/json. |
Payload
An incoming ERC-20 transfer looks like this:
{
"id": "eth:0x8f3c...:log:42:66f1c2a4b8e9d3a1f0c7b215:0x742d...",
"delivery_id": "66f2d7b1c3a4e5f60718293a",
"monitor_id": "66f1c2a4b8e9d3a1f0c7b215",
"type": "erc20_transfer",
"chain": "eth",
"chain_id": 1,
"block": {
"number": 23123456,
"hash": "0x9b2e...",
"timestamp": 1764940800
},
"tx": {
"hash": "0x4c1a...",
"index": 7
},
"log_index": 42,
"watched_address": "0x742d35cc6634c0532925a3b844bc454e4438f44e",
"direction": "in",
"asset": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"from": "0x8f3c...",
"to": "0x742d35cc6634c0532925a3b844bc454e4438f44e",
"amount": "2500000000",
"raw_amount": "0x9502f9000",
"decimals": 6,
"created_at": "2026-12-05T15:30:00.000Z"
}A native UTXO transfer uses the same envelope. Bitcoin amounts are satoshis, so amount 100000 with decimals: 8 is 0.001 BTC. Addresses are returned exactly as they appear on chain, including their case:
{
"id": "btc:7d3d...:utxo:in:66f1c2a4b8e9d3a1f0c7b215:bc1qn8tykysa7240evcudth620dlsf0cztvczpc52p",
"delivery_id": "66f2d7b1c3a4e5f60718293a",
"monitor_id": "66f1c2a4b8e9d3a1f0c7b215",
"type": "native_transfer",
"chain": "btc",
"chain_id": 0,
"block": {
"number": 978900,
"hash": "00000000000000000001f3...",
"timestamp": 1764940800
},
"tx": {
"hash": "7d3d...",
"index": 12
},
"log_index": null,
"watched_address": "bc1qn8tykysa7240evcudth620dlsf0cztvczpc52p",
"direction": "in",
"asset": "BTC",
"from": "1BM1sAcrfV6d4zPKytzziu4McLQDsFC2Qc",
"to": "bc1qn8tykysa7240evcudth620dlsf0cztvczpc52p",
"amount": "100000",
"raw_amount": "100000",
"decimals": 8,
"created_at": "2026-12-05T15:30:00.000Z"
}| Field | Notes |
|---|---|
| type | native_transfer or erc20_transfer. UTXO chains only produce native_transfer. |
| chain / chain_id | The chain slug and its identifier. For EVM chains this is the EIP-155 chain ID. For UTXO chains it is the SLIP-44 coin type (Bitcoin is 0), not an EVM chain ID; key your logic on chain. |
| watched_address | The address from your monitor that matched this transfer. |
| direction | in, out or self. |
| asset | native for an EVM chain’s native coin, the ERC-20 token contract address, or the UTXO ticker (BTC, LTC, DOGE, BCH, ZEC). |
| amount / decimals | Integer amount in the asset’s smallest unit, plus the number of decimals. For USDC above, 2500000000 with 6 decimals is 2,500 USDC. Native EVM amounts are in wei (18 decimals); UTXO amounts are in satoshis (8 decimals), so 100000 is 0.001 BTC. Parse as a string or integer, never as a floating-point number. |
| raw_amount | The amount exactly as it appeared on chain: hex for EVM, a decimal string of satoshis for UTXO. |
| log_index | The ERC-20 log position. null for native transfers. |
| internal / trace_address | Present only for native value moved inside a contract call. trace_address identifies the call path. |
EVM native transfers use asset: "native", decimals: 18, and the amount in wei. UTXO native transfers use the ticker as asset, decimals: 8, and the amount in satoshis. ERC-20 decimals is read from the token contract and is null if the token does not implement it.
Verify the signature
The signed value is t + "." + rawBody, where t is the timestamp from the header and rawBody is the exact request body. Compute HMAC-SHA256 with the monitor secret, compare the hex digest in constant time, and reject timestamps more than five minutes away from your clock.
import crypto from "node:crypto";
function verifySwiftNodesWebhook(rawBody, signatureHeader, secret, toleranceSeconds = 300) {
const parts = Object.fromEntries(
signatureHeader.split(",").map((part) => part.split("=", 2))
);
const timestamp = Number(parts.t);
const signature = parts.v1 || "";
if (!Number.isFinite(timestamp)) return false;
if (Math.abs(Date.now() / 1000 - timestamp) > toleranceSeconds) return false;
const expected = crypto
.createHmac("sha256", secret)
.update(parts.t + "." + rawBody)
.digest("hex");
const a = Buffer.from(expected);
const b = Buffer.from(signature);
return a.length === b.length && crypto.timingSafeEqual(a, b);
}A minimal Express receiver that verifies before parsing:
import express from "express";
const app = express();
app.post(
"/webhooks/swiftnodes",
express.raw({ type: "application/json" }),
(req, res) => {
const rawBody = req.body.toString("utf8");
const ok = verifySwiftNodesWebhook(
rawBody,
req.get("X-SwiftNodes-Signature") || "",
process.env.SWIFTNODES_WEBHOOK_SECRET || "",
);
if (!ok) return res.sendStatus(401);
const event = JSON.parse(rawBody);
res.sendStatus(204);
void queue.add(event); // process after acknowledging
},
);The same check in Python:
import hashlib
import hmac
import time
def verify_swiftnodes_webhook(raw_body: bytes, header: str, secret: str, tolerance: int = 300) -> bool:
parts = dict(part.split("=", 1) for part in header.split(","))
timestamp = int(parts.get("t", "0"))
signature = parts.get("v1", "")
if abs(time.time() - timestamp) > tolerance:
return False
expected = hmac.new(
secret.encode(),
f"{timestamp}.".encode() + raw_body,
hashlib.sha256,
).hexdigest()
return hmac.compare_digest(expected, signature)Response and retries
Any 2xx response means the delivery succeeded. We time out after 10 seconds.
- Retried: network errors, timeouts, HTTP 408, 425, 429, and every 5xx response.
- Not retried: other 4xx responses such as 400, 401, 403, 404, 410 and 422. Fix the endpoint before the next event.
- Attempts: up to 8. The waits between attempts are 1 minute, 5 minutes, 15 minutes, 1 hour, 3 hours, 6 hours, then 12 hours. An 8th failure marks the delivery dead.
A slow or failed endpoint does not silently discard events: pending deliveries stay queued while they retry. Return 2xx quickly, queue the work, and deduplicate using X-SwiftNodes-Delivery. Delivery history in the dashboard shows each attempt and the last error.
Confirmations and reorgs
A delivery is sent only when the current chain head satisfies head - block.number + 1 >= confirmations. The default is shown when you pick a chain; you can set 1–128 per monitor.
- A lower value delivers faster but is more exposed to reorganisations.
- If a reorg removes the transfer before delivery, the event is dropped and no webhook is sent.
- If a reorg happens after a webhook has already been delivered, we do not currently send a correction event. Use a confirmation depth that matches your finality requirements, and handle reorgs in your own ledger where needed.
History and retention
Successful delivery records follow your RPC plan: 3 days on Starter, 7 days on Growth, 14 days on Scale and 30 days on Pro. Pending and retrying deliveries are not expired while they still have attempts left. Test deliveries are never stored.
Monitoring is address activity, not a general event-log subscription: on EVM chains it matches native value transfers (including internal transfers where tracing is available) and ERC-20 Transfer logs; on UTXO chains it matches transaction outputs and inputs. It does not watch arbitrary contract events. For custom events, use WebSocket subscriptions or eth_getLogs.
Troubleshooting
| Symptom | Check |
|---|---|
| Test returns 401 | The raw body was changed before verification, the wrong monitor secret is configured, or the timestamp is outside the five-minute window. |
| Test cannot connect | The URL must be reachable from the public internet. Localhost, private network addresses and firewalled hosts will fail. |
| No deliveries for an address | Check that the monitor is active, the address is on a selected chain, the direction and event-type filters match, and the transfer has reached the confirmation depth. |
Create returns address_family_mismatch | The monitor mixes chains with different address formats. Keep all EVM chains in one monitor, or put a single UTXO chain (BTC, LTC, DOGE, BCH or ZEC) in its own monitor. |
Create returns invalid_address | The address is not valid for the selected family. Check the format table above; for Base58 addresses, confirm the case was not changed when copying. |
| Duplicate events | A retry can follow a response your endpoint did not complete. Deduplicate on X-SwiftNodes-Delivery. |
| Delivery marked dead | The endpoint returned a non-retryable 4xx, or all 8 attempts failed. Fix the endpoint; the error in Recent deliveries shows the reason. |
| Monitoring tab says access is not enabled | Monitoring is still in development and testing and will be released as a separate add-on service. Contact support to ask about testing access. |
Next: learn how to stream events in real time in the WebSocket guide, or check which chains are available.