aboutsummaryrefslogtreecommitdiffstats
path: root/src/format.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-06-25 09:39:14 -0700
committerAdam Soltys <[email protected]>2026-06-25 09:39:14 -0700
commita2bb363e2c86dc845e6748e046c8d489e656c584 (patch)
tree04bd4a631cc6b1a6b1356a75ff20f93fa4632fb2 /src/format.js
parent554716b916c5b4c4ca39bf6344f840c62a0da54a (diff)
downloadcoinosv3-a2bb363e2c86dc845e6748e046c8d489e656c584.tar.gz
coinosv3-a2bb363e2c86dc845e6748e046c8d489e656c584.zip
Realtime via self-hosted ZMQ watcher (Electrum-over-WS)
Replace the unreliable public WebSocket push (mempool/blockchain.info address subscriptions never reliably fire) with a private notification service: - tools/zmq-watcher.js: a standalone Bun service (reusing coinos lib/zmq.ts's ZMTP subscriber) that reads Bitcoin Core's ZMQ rawtx/rawblock, computes the scripthash of each output, and pushes a blockchain.scripthash.subscribe notification to subscribed clients. No historical index (~24MB RAM) — just the live tx stream. Runs on the coinos box reading its Core's ZMQ. - wallet.js: realtime client now speaks the Electrum protocol (server.version, scripthash.subscribe, server.ping) over the WS; any scripthash notification triggers the existing refreshLive() (REST stays the source of truth). - api.js: wsUrl -> wss://coinos.io/electrum. Verified end-to-end: live mempool txs to subscribed addresses notify instantly. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Diffstat (limited to 'src/format.js')
0 files changed, 0 insertions, 0 deletions