See how much spam your Bitcoin node stores — and what a Monetary Node would save.
Monetary View (on GitHub: BitcoinMonetaryView) connects to your own Bitcoin Core, Bitcoin Knots or Bitcoin Roots node, analyses every block of the chain with the rules of the Monetary Node project and shows, in a web dashboard:
- how much of each block is spam (inscriptions, oversized OP_RETURN, Stamps-style fake keys, oversized scriptSig),
- how much block storage a Monetary Node would save,
- how many spam and dust entries sit in your UTXO set right now, and how old they are,
- how all of this developed over the whole history of Bitcoin — or in any period you pick (last 30 days, a year, since Ordinals, any dates or block heights),
- the current pace (spam in the last 30 days, this year's share against last year's) and the records: the biggest spam block and month,
- the details of any single block, looked up by height or hash.
It is meant for people who run Core, Knots or Roots today and are considering a Monetary Node: it shows the benefits on their own node, with their own data.
The dashboard is available in English, German (Deutsch), Spanish (Español), French (Français) and Polish (Polski) — the languages of StartOS. It follows your browser's language (English if yours is not among them); the language menu in the header switches it and is remembered in that browser. The translations are new: if you spot a mistake, please report it. Exports (CSV/JSON) keep English column names, so scripts and spreadsheets work the same in every language.
Independent project. Monetary View is not affiliated with or endorsed by the Monetary Node project; it uses its published spam rules unchanged (see NOTICE for the pinned version and licence).
Read-only. The app never changes anything on your node. It talks to it only through a fixed whitelist of read-only RPC calls, never touches the node's files, and keeps its results in its own separate database.
| Platform | How |
|---|---|
| Umbrel | Add the community app store https://github.com/MarkSierra/umbrel-community-app-store in your Umbrel's App Store, then install Monetary View — steps |
| Start9 (StartOS 0.4.1+) | Install Monetary View from the Start9 Community Registry in your StartOS Marketplace — steps |
| Docker | ghcr.io/marksierra/bitcoinmonetaryview:latest — steps |
| Any computer with Python | See the quick start below |
As an app on your computer or phone: once the dashboard is open, Chrome, Edge and Brave offer
Install in the address bar (on Android: menu → Add to Home screen, on iPhone: Share → Add to Home
Screen). It then opens in its own window with its own icon. It is still the dashboard served by your node —
nothing is downloaded and nothing works offline; each address you install from (LAN, .local, Tor) becomes
its own app. Browsers offer this on HTTPS addresses and on localhost; some (like Brave) also on a plain
LAN address.
Requirements: Python 3.10+ (standard library only — nothing to install) and a Bitcoin Core, Knots or Roots node.
git clone https://github.com/MarkSierra/BitcoinMonetaryView
cd BitcoinMonetaryView
# Same machine as the node (uses bitcoind's cookie file, read-only):
python3 -m bitcoinmonetaryview --rpc-cookie-file ~/.bitcoin/.cookie
# Another machine on your network:
BMV_RPC_URL=http://192.168.1.20:8332 BMV_RPC_USER=myuser BMV_RPC_PASSWORD=mypassword \
python3 -m bitcoinmonetaryviewThen open http://127.0.0.1:8338/. Check the connection first with --check:
python3 -m bitcoinmonetaryview --rpc-cookie-file ~/.bitcoin/.cookie --checkYour node only accepts RPC from localhost by default. On the node, add to bitcoin.conf (adapt the network):
server=1
rpcbind=0.0.0.0 # or the node's LAN address
rpcallowip=192.168.1.0/24 # your local network
rpcauth=... # create with Bitcoin Core's share/rpcauth/rpcauth.py
# optional, about halves the transfer size:
rest=1Plain http:// RPC sends your RPC password unencrypted over the network — fine on a trusted home LAN,
otherwise use an https:// URL, Tor or an SSH tunnel (ssh -L 8332:127.0.0.1:8332 node). The app warns you
when it detects plain HTTP to another machine.
Native package (StartOS 0.4.1 or newer): Monetary View is in the Start9 Community Registry. It runs next to Bitcoin Core or Knots on your Start9, connects automatically and needs no node setup.
- In StartOS, open the Marketplace, choose the Community Registry and install Monetary View.
- Run the Set Web Password task (or action) and save the user name and password it shows.
- Start the service and open its Web UI interface; sign in with those credentials.
Updates come through the Marketplace and keep your scan results. Start9 builds and signs the package from its Start9-Community fork of the packaging repository.
From another computer: use the RPC connection details shown in your Bitcoin Core / Knots / Roots service
(Interfaces / Properties). StartOS serves LAN RPC over HTTPS with its own certificate authority: download your
Start9 root CA and pass it with --rpc-cafile (TLS verification is never disabled). Over Tor:
--rpc-url http://<rpc-address>.onion:8332 --tor-proxy 127.0.0.1:9050.
Packaging details: docs/startos.md.
Community app store (umbrelOS 1.x and 2.0): MarkSierra/umbrel-community-app-store
- In Umbrel open the App Store → ⋯ (top right) → Community App Stores.
- Paste
https://github.com/MarkSierra/umbrel-community-app-storeand click Add. - Open Mark Sierra's App Store and install Monetary View.
It runs next to Umbrel's Bitcoin Node or Bitcoin Knots app, connects automatically and needs no setup; Umbrel's own login protects the dashboard. The scan results are excluded from Umbrel backups (they can always be rebuilt); your settings are kept. Packaging details: docs/umbrel.md.
cp docker-compose.example.yml docker-compose.yml # edit RPC settings
docker compose up -dThe container runs as a non-root user with a read-only root filesystem; only its data volume is writable.
Released versions are also published as a ready-made multi-arch image (x86_64, ARM64 and, since 0.2.4, RISC-V):
ghcr.io/marksierra/bitcoinmonetaryview:latest (or a fixed version such as :0.3.12) — use it as image: instead
of build: . in the compose file, or fetch it with docker pull ghcr.io/marksierra/bitcoinmonetaryview:latest.
- Quick pass — the latest 1,000 blocks, so you see real numbers within minutes.
- Sample pass — every 100th block across the rest of the history (about 1 % of the data, typically 5–20 minutes). From it the dashboard shows an estimate for the whole chain, with its margin of error, right from the start — instead of numbers that stay small for hours while the scan works through the largely spam-free early years. While the scan runs, the overview shows only this estimate (marked ≈), with a line stating the exact figure so far; the estimate is replaced by exact figures as the full scan proceeds. Most of the uncertainty sits in the spam-heavy recent years, so the estimate mostly firms up near the end. The UTXO figures, the share card, the exports and the History and Blocks pages always use exact data only; parts of the history not scanned yet are marked as such.
- Full history scan — every block from the genesis block to the tip, in order. This is what makes the exact UTXO numbers possible: every spam output is tracked from the block that created it until it is spent. It is resumable: stop the app at any time and it continues where it stopped.
- Live — afterwards, new blocks are analysed as they arrive (less than a second of work per block). Chain reorganisations are detected and rolled back exactly.
A status bar on every page shows what the app is doing right now, progress, speed and ETA.
Any block can be opened from the Blocks page by height or hash. If the scan has not reached it yet, Analyse this block now reads that one block from the node (same read-only, verified path as the scanner; one lookup at a time with a short cooldown) and shows its exact figures; the result is kept in memory only and never mixed into the scan results.
The node's work is reading and sending blocks. The app limits that:
| Profile | What it does |
|---|---|
| Eco (default) | one request at a time, pauses after every block, one CPU core |
| Balanced | two parallel requests, short pauses, analysis on up to 2 CPU cores |
| Full speed | up to four parallel requests, analysis on up to 4 CPU cores (one core is always left free) |
In every profile the app backs off automatically when your node answers slowly, waits while the node is
still syncing, and can be limited to a daily time window (e.g. --scan-window 01:00-07:00) or paused.
Roughly — the dashboard shows the measured ETA after a few minutes. Measured on a 4-core machine against a fake node: ~9 MB/s (Eco), ~27 MB/s (Balanced), ~36 MB/s (Full speed) of block data; the real node's disk and network add to that:
| Hardware | Full speed | Eco |
|---|---|---|
| Start9 / Umbrel-class, SSD | ~12–24 hours | ~2–4 days |
| Desktop / NVMe, 4+ cores | ~5–8 hours | ~1 day |
Over Wi-Fi it is slower; over Tor a full scan is impractical (days to weeks) — use the LAN or run the app on the node's machine. The app's own database grows to roughly 4–8 GB after a full mainnet scan.
When the app stops, it saves its spent-output filter next to the database (as large as bloom_mb, 256 MB by
default), so the next start takes seconds instead of rebuilding the filter from the database (several minutes
with ~50 million spam outputs). The saved copy is only used if the database has not changed since it was
written; after a crash, or if anything does not match, the app rebuilds the filter as before.
The rules are taken unchanged from the Monetary Node project (tools/monetary_store.py, pinned to upstream
commit 492539256d43, see NOTICE):
| Carrier | Rule | Effect in a Monetary Node |
|---|---|---|
| Inscriptions | data in OP_FALSE OP_IF … OP_ENDIF or OP_TRUE OP_NOTIF … OP_ENDIF envelopes in taproot script-path / P2WSH witnesses |
removed from block storage |
| OP_RETURN | scripts over 83 bytes (verified payment-protocol envelopes kept, see below) | removed from block storage |
| Stamps / fake keys | bare multisig or P2PK whose keys are not points on secp256k1 | removed from blocks and the UTXO set |
| scriptSig | input scripts over 1,650 bytes | counted as spam but kept in block storage (upstream docs/CARRIERS.md), so it saves nothing |
| P2TR dust | taproot outputs under 1,000 sats since block 767,430 | kept in blocks, removed from the UTXO set |
Carrier policy (--carrier-policy, default on): upstream's carrier_policy.py keeps oversized OP_RETURNs
that are exactly-parsed Shielded Bitcoin payment envelopes. Upstream documents this but has not wired it into
monetary_store.py yet; this app wires it in exactly as upstream's CARRIER_POLICY.md describes. With it off,
the results equal the ruleset of upstream's published figures.
"Storage saved" compares the original block size with the exact size of the Monetary Node's store record (which includes the txids and filter entries it keeps). Undo files and optional indexes are not counted, so the number is not overstated.
Every analysed block is verified before it is counted: its hash must match the header, the merkle root must match the transactions, and the witness commitment must match the witness data.
Known upstream behaviours that are kept for comparability (reported upstream): hybrid-encoded P2PK keys count as data; envelopes in single-item P2WSH witnesses and in taproot script-path spends that carry an annex are not detected; the last item of any multi-item witness is parsed as a script. The carrier policy only adds exemptions: the OP_RETURN size test stays upstream's script-length rule.
- Read-only by construction: the RPC client refuses every method that is not on a short whitelist
(
getblockchaininfo,getnetworkinfo,getbestblockhash,getblockhash,getblockheader,getblockwith verbosity 0,gettxoutsetinfowithhash_type=none) — also inside batch requests and with forbidden parameters. REST (rest=1) is used only if you have already enabled it. - No access to the node's files. Only the RPC cookie file is read, if you point to it — opened read-only.
No
dumptxoutset(it would write a large file on the node). - One exception, once a week: to show what share of the UTXO set is spam, the app asks the node for the
size of its UTXO set (
gettxoutsetinfo). To answer, Bitcoin Core first writes the part of the UTXO set it holds in memory to disk. That is the node's own data and nothing in it changes, but it is a write the app causes, and the node needs a few minutes of disk and CPU for it (much less withcoinstatsindex=1). - Web interface: listens on
127.0.0.1by default. If you expose it (--bind 0.0.0.0), set--auth-user/--auth-passwordand ideally--tls-cert/--tls-key. State-changing requests (pause, rescan, scan settings — all affecting only this app — and the on-demand block lookup, which only reads one block) need a CSRF token; a Host allowlist protects against DNS rebinding; a strict Content-Security-Policy is sent; credentials are never returned by the API or logged. - Privacy: no telemetry, no external requests — no fonts, no CDNs, no price feeds. The app only talks to your node.
- Supply chain: zero third-party Python packages.
See SECURITY.md to report a vulnerability.
All settings work as command-line flags, environment variables (BMV_…) or in settings.json in the data
directory (default ~/.bitcoinmonetaryview). See docs/settings.md.
python3 -m unittest discover -s tests -t . # all tests
python3 -m tests.demo # dashboard against a fake node with a synthetic chain
BMV_BITCOIND=/path/to/bitcoind python3 -m unittest tests.test_regtest # real regtest nodeThe test suite checks byte-for-byte parity with upstream's strip_block, runs upstream's own test suites
against the vendored files, uses real blocks from Bitcoin Core's test data, fuzzes the parser, simulates
reorgs, restarts and tampered blocks, and verifies the web server's security properties.
Validation against upstream's published figures: on a full mainnet node, open History → Custom range
→ Block heights, enter 767430 to 962292 and compare with upstream's
results (also
docs/STRIP_RESULTS.md).
Upstream's tools divide by 1024 but label the result "GB", so its figures are in binary units (GiB, MiB);
this app uses decimal units (1 GB = 10⁹ bytes) — reported upstream in
issue #3. Converted, a full mainnet node shows:
| Range 767,430–962,292 | Upstream (binary units) | Converted to decimal | This app |
|---|---|---|---|
| Blocks / transactions | 194,863 / 628,773,234 | 194,863 / 628,773,234 | |
| Original blocks | 296.2 "GB" | 318.0 GB | 318 GB |
| Spam (all carriers) | 37.2 "GB", 12.56 % | 39.9 GB | 39.9 GB, 12.5 % |
| — inscriptions / Stamps / OP_RETURN | 37.1 "GB" / 77.5 "MB" / 12.3 "MB" | 39.8 GB / 81.3 MB / 12.9 MB | 39.8 GB / 81.3 MB / 12.9 MB |
| Transactions with spam (upstream: "modified or stripped") | 121,599,701 | 121,769,368 | |
| Storage saved | 48.7 "GB", 16.46 % | 52.3 GB | 54.6 GB, 17.2 % |
The spam figures agree. The storage saving and the number of transactions with spam are slightly higher here
because the published run predates three rules upstream added later (OP_NOTIF envelopes, envelopes in
P2WSH witnesses, fake keys in bare P2PK — see its
docs/CARRIERS.md):
every transaction they flag in addition loses its witness data in the store. This app uses the current
rules, and its storage calculation is upstream's own strip_block (checked byte for byte in the tests). The
carrier policy makes no visible difference in this range.
AGPL-3.0-or-later — free software: use, study, share and improve it; if you distribute a modified version or offer it as a network service, publish your source. The vendored Monetary Node files remain under their BSD-2-Clause license (NOTICE).
