I'm sharing Monitor BTC, an open-source, watch-only Bitcoin wallet that runs on Cloudflare Workers. It shows balance, receive addresses and history from an xpub, without ever handling private keys.
How it works
The user pastes an xpub/zpub/ypub. The server derives the addresses (BIP44, 49, 84 and 86) and reads balance and history from Electrum servers over TLS.
It builds unsigned PSBTs with fee and change calculation, and can accelerate a pending transaction via CPFP.
Signing is done offline in Cofre BTC, a single HTML file that runs in the browser. Before signing, it checks the account, derivation, script, outputs and fee.
Only after signing is the transaction broadcast. The Monitor checks that the inputs belong to the xpub and are finalized.
Design decisions
No database and no storage. The session lives in a Durable Object that discards everything when the last screen closes.
The xpub never appears in logs or URLs.
Cofre has an optional BIP39 passphrase field. Whoever loses that passphrase loses the wallet it defines.
Known limitations
Full rescan on each new session, with a gap limit of 50 addresses.
No monitoring with the page closed.
Mainnet only. No RBF.
The Electrum servers see the scripthashes you query.
No external audit yet. Security reviews are welcome.
Source (MIT):
https://github.com/RaelAles/BTCLive:
https://btc.raelales.comQuestions and criticism are welcome. If you find a problem, please open an issue on GitHub.