Base USDC · Node.js + SQLite
Transfer alerts that survive a restart.
A small reference watcher with a durable block cursor, exact amounts and a retrying webhook outbox. It reads public transfers; it never signs or moves funds.
Commit the event before sending the alert.
The block cursor and its alerts commit together. A failed database write leaves both unchanged. Reopening the database preserves pending deliveries. A self-transfer found by both incoming and outgoing queries produces one event.
Run the local checks
Extract the ZIP and run this command. No package install, credentials or public network access are needed for the tests.
node --test watch.test.mjs
To use the CLI, first configure your own authorized RPC and webhook endpoints, wallet address and start block. The README explains these variables and the real HTTP requests the CLI will make.
What was checked
- Confirmation depth, incoming/outgoing/self classification and exact large integer amounts.
- Real SQLite restart recovery and rollback when the second outbox insert fails.
- HTTP 503 retry, persistent backoff, exhausted deliveries and explicit requeue.
- Stable event IDs after a receiver accepts an alert but its response is lost.
- Changed block hashes, malformed logs, conflicting duplicates, wrong chain and overlapping ticks.
A real RPC compatibility check
The adapter also read Base block 53155905 and decoded the project's historical 125.000000-USDC receipt at log 246. It used eight read-only RPC calls and sent no webhook. That payment happened on October 27; this check is not new income or a new transaction.
Inspect the historical transaction ↗
Where the sample stops
Alerts are delivered at least once. Receivers must persistently deduplicate the event ID. A block-depth threshold is not finalized settlement. A changed persisted block halts the watcher for reconciliation.
One process, one wallet and native Base USDC only. The RPC provider is trusted for completeness. No hosted deployment, customer integration, independent chain verification, automatic reorg reversal, production load or power-loss recovery is claimed.