# XPlorer — four modes, and which chain you are looking at `strblk explorer` serves a read-only view of a chain. **Which chain** depends entirely on how you started it, and the four ways of starting it differ enormously in what they show and what they cost. This page is that choice, made once. Every page the explorer serves carries a **provenance banner** in its masthead, and every JSON answer carries the same provenance on `/api`. `REASONED`: a caller reading a height from a synthetic chain and a height from a validator must be able to tell them apart in the same field, so provenance is the first key on `/api` rather than the last. **Every claim on this page is labelled.** `MEASURED` means it was observed by running the thing named, on 2026-09-07, against a three-node Polaris network at height 8. `REASONED` means it is an argument from code that was read. --- ## 0. Which one do you want | You have | Use | Panels | Cost | |---|---|---|---| | A **running network** you can dial | `--peers host:port,…` | **12 of 12** | a second copy of the chain on disk, a peer slot on each node, a catch-up window | | A node that is **stopped** | `--dir PATH` | **12 of 12** | replays that node's store in this process; needs the keystore passphrase | | A node you **cannot peer with** | `--node URL` | **2 of 12** | two bounded GETs on the node, no disk here at all | | Nothing, and you want to see the UI | `--demo` | 12 of 12, all of it invented | nothing, and it is worth nothing | **Following is the default whenever `--peers` is given**, and it is the right answer for almost every real situation. The other three exist because there are three situations it cannot cover. --- ## 1. Following — `--peers` (Fylgja) XPlorer becomes a **read-only node of its own**. It joins the network, takes blocks off the wire, verifies them with the same acceptance path a validator uses, and keeps them in a directory of its own under its own directory lease. It does not ask a node what it thinks; it reads its own copy. ```bash node dist/src/cli/strblk.js explorer \ --peers 127.0.0.1:60003,127.0.0.1:60006,127.0.0.1:60010 \ --validators zk13str_8c1df54960d4cf7564a7ec541f7ff9e4b1aa2e01_79ae,zk13str_fd8b8c40c473e9851bac1723c3ca2ff4737c28c8_6d86,zk13str_0d575236d32cda1dee6e4ddfb1d86934ae1ea298_8ff5 \ --port 8099 ``` ```text mode FOLLOWING — XPlorer is its own read-only node on this network why --peers named 3 peer(s), so XPlorer syncs the chain itself and serves every panel peers 127.0.0.1:60003, 127.0.0.1:60006, 127.0.0.1:60010 own directory .sourceless/xplorer — XPlorer's own, under XPlorer's own Cerberus lease other stores none opened, none touched, no node stopped node id STR.DBF6ECD5FEF6 class quasar — follow-only: production is fixed off and no producer key is held listening (p2p) 53282 genesisHash 8ee28b94b15c1db6cfb7e052d2ade53b5e1a8be5d8698e17a679f4b567a576ea producers declared (mode development) height 0 held locally network height unknown — no peer has advertised a height yet caught up unknown — no peer has advertised a height yet, so being caught up is unmeasured ``` `MEASURED`, at the moment of start. Other flags: `--follow-dir PATH` for where the follower keeps its own chain (default `.sourceless/xplorer`, and **never** a node's directory), `--p2p-port`, `--advertise`, `--class` (`quasar` default, or `supernova`) and `--validators` for the producers this follower will accept blocks from. ### What it shows Everything. `MEASURED`, twelve panels, all 200: ```text 200 / 200 /network 200 /blocks 200 /txs 200 /pending 200 /address/… 200 /contracts 200 /identity 200 /governance 200 /bridge 200 /ledgers 200 /health ``` `REASONED`, and this is the load-bearing design point: the chain is in this process, and the read model is constructed over it **exactly as in `--dir` mode**. Panel parity is the same reader over the same type, not a claim maintained by hand — an integration test asserts the two modes' answers are byte-identical rather than merely both 200. ### The banner while it catches up, and after `MEASURED`, after 12 seconds against the same network: ```text XPlorer following the chain as its own read-only node height 8 of 8 on the network. 3 peer(s) connected, 4 known; 8 block(s) followed and 8 pulled in by sync since this follower started. Caught up: this follower holds every block any peer has claimed, so every panel below is the whole chain. Its own directory is .sourceless/xplorer, held under its own Cerberus lease — no other node's store is opened, touched or stopped. Seeds: 127.0.0.1:60003, 127.0.0.1:60006, 127.0.0.1:60010. Genesis 8ee28b94b15c1db6…, producers declared, node id STR.DBF6ECD5FEF6. ``` The banner has **four** states, and the difference between them is the whole reason the mode is trustworthy. `REASONED`, from the code that chooses them: | Condition | Tone | What it says | |---|---|---| | caught up | good | *"this follower holds every block any peer has claimed, so every panel below is the whole chain"* | | behind | warn | *"STILL SYNCING, N block(s) behind. The panels below are correct about the blocks this follower has verified and are NOT the whole chain yet. A block it has not reached is missing from this page, not missing from the network."* | | no peer has advertised a height | warn | *"Whether this is the whole chain is unknown — no peer has advertised a height yet."* | | behind, peers ahead, every one searched for a fork point | warn, overrides all three | *"BEHIND AND STUCK: … What is below is not the whole chain and will not become it without help."* | The third row is the one that matters most. `MEASURED`, from a live follower's `/api`: ```json "progress": { "height": "0", "target": { "status": "unknown", "reason": "no peer has advertised a height yet" }, "caughtUp": { "status": "unknown", "reason": "…so being caught up is unmeasured" } } ``` `REASONED`: a follower that no peer has spoken to reports the network's height as **unknown with a reason** rather than as zero, as its own height, or as an omission — all three of which render to a reader as *caught up*. A green banner over a chain nobody has confirmed is exactly the lie this type exists to prevent. ### What it costs Named rather than hidden: a **second copy of the chain on disk**, a **peer slot on every node it dials**, and a **catch-up window** during which the banner says so. ### Three safety properties `REASONED`, and all three are structural rather than conventional: - **It never seals.** The block interval is fixed at 0 inside the component and is not an option, and no producer key is passed — so a cadence reintroduced by accident would have nothing to sign with. `MEASURED`, from the start banner: *"quasar — follow-only: production is fixed off and no producer key is held"*. - **It never opens another process's directory.** It is given its own and takes a lease on it. - **It never presents a partial chain as a whole one.** Height sits beside a measured target on every page. ### One real warning at start ```text SECRET KEYS ARE NOT ENCRYPTED AT REST file: .sourceless\xplorer\identity.json - SOURCELESS_KEY_PASSPHRASE is not set: this node's secret keys are stored UNENCRYPTED at rest. ``` `MEASURED`. It is about the **follower's own** peer identity, not about any chain key: a follower signs peer records as itself and holds no producer key. The exposure is impersonation of this viewer on the network. Set `SOURCELESS_KEY_PASSPHRASE` anywhere that matters. --- ## 2. A stopped node's directory — `--dir` Opens a node's own store in this process and serves every panel from the blocks that node actually sealed. ```bash SOURCELESS_KEY_PASSPHRASE="polaris-node-1-passphrase-long-enough" \ node dist/src/cli/strblk.js explorer --dir .sourceless/polaris/node1 --port 8115 ``` ```text mode DATA DIRECTORY — a node's own store, every panel served from the blocks it sealed why nothing holds this directory, so XPlorer took the Cerberus lease and opened it here directory .sourceless/polaris/node1 genesisHash 8ee28b94b15c1db6cfb7e052d2ade53b5e1a8be5d8698e17a679f4b567a576ea height 8 head 571609dca198ce26dfa708a2bd95c81d7ad71a7c99f1154951317e6edb8138e0 ``` `MEASURED`. All twelve panels answer 200, and `POST /` answers **405** — read-only is enforced before routing, not by handlers that happen not to mutate. The banner: ```text A node's own data directory .sourceless/polaris/node1 — opened under a Cerberus lease because nothing else holds it. This is that node's real chain, replayed in this process, so every panel below is served from the blocks it actually sealed. ``` If a previous process died without releasing its lease, the banner adds *"A stale lock from pid N (command) was displaced to open it, which means a previous process died without releasing"* — `REASONED`; not an error, and worth an operator's attention. ### Two things that will stop you **It must be stopped.** `MEASURED`: point `--dir` at a directory a running node holds and XPlorer does **not** open it — it finds the node's operator endpoint in the lock file and silently becomes `--node` mode instead: ```text mode LIVE NODE — one node, over its operator endpoint; the directory was NOT opened why --dir is held by a running node that publishes an endpoint, so the directory was left alone endpoint http://127.0.0.1:54684 holding .sourceless/polaris/node1 — pid 10588 ``` `REASONED`: one writer per store. Opening a second store on a live data directory — two writers appending to one log and renaming over one snapshot — is the corruption the lease exists to prevent, and it was once reachable by *asking a running node how it was doing*. **It needs the keystore passphrase.** `MEASURED`, on a stopped Polaris node with no passphrase set: ```text KeystoreError: the identity keystore at .sourceless\polaris\node1\identity.json is encrypted and SOURCELESS_KEY_PASSPHRASE is not set. Set it to the passphrase this keystore was sealed with and start again. Nothing was changed on disk. ``` Polaris seals node `N` with `polaris-node-N-passphrase-long-enough` unless `SOURCELESS_KEY_PASSPHRASE` was set when the network started. See [POLARIS.md §6](POLARIS.md#6-where-the-chain-lives). ### When to prefer it over following When the node is stopped anyway — after an incident, or on a copy of a directory taken for analysis. `REASONED`: it costs no peer slot and no second copy, because the copy already exists. It is **not** the answer for looking at a live network; taking a network down to look at it is what the following mode was built to stop. --- ## 3. One running node, over its endpoint — `--node` (Vedrfolnir) Reads a node's operator endpoint with two bounded GETs. No directory is opened, no chain is synced, no disk is used here. ```bash node dist/src/cli/strblk.js explorer --node http://127.0.0.1:54684 --port 8112 ``` ```text mode LIVE NODE — one node, over its operator endpoint; the directory was NOT opened why --node named an endpoint, and no --peers was given, so XPlorer asks that node rather than syncing endpoint http://127.0.0.1:54684 height 8 head 571609dca198ce26dfa708a2bd95c81d7ad71a7c99f1154951317e6edb8138e0 stateRoot 01ca2ef641075bc99fbdf7928a23094113b804c82dde9b446976c3f0af770f6e peers 3 partial 9 of 12 panels cannot be served over an endpoint — / lists each and why ``` `MEASURED`. ### The limit, honestly `MEASURED`, probing all twelve panel paths: ```text 200 / 200 /health 501 /network 501 /blocks 501 /txs 501 /pending 501 /address/… 501 /contracts 501 /identity 501 /governance 501 /bridge 501 /ledgers 501 /search ``` **501, not 404.** `REASONED`: a 404 on `/blocks` reads as *this chain has no blocks*, which is a lie. A 501 with the reason on it reads as *this mode cannot serve this*, which is true. The body: ```json { "error": "this mode cannot serve /blocks", "verdict": "absent", "reason": "A node publishes no block body on an unauthenticated route. /api/ops/blocks carries block SUMMARIES and needs a Themis role (status:read); XPlorer holds no key. Run strblk explorer --peers and XPlorer syncs the blocks itself.", "mode": "live-node", "endpoint": "http://127.0.0.1:54684", "remedy": "Run `strblk explorer --peers `. …" } ``` The panel table is published in full on `/api` and rendered on `/`. `MEASURED`, twelve entries, with verdicts: | Panel | Verdict | Why | |---|---|---| | `/` | partial | height, head, state root, peers and the depth line come from the endpoint; the ledger index, latest blocks and latest transactions do not | | `/network` | partial | height, head, state root, peer count, depth line and required confirmations are served; the validator set and per-ledger supply are not on the endpoint | | `/health` | **served** | answered from the live read, asks the node nothing extra | | `/blocks`, `/block/{ref}` | absent | a node publishes no block body on an unauthenticated route | | `/txs`, `/tx/{id}`, `/pending` | absent | transactions live in blocks and in the mempool; the endpoint publishes neither | | `/address/{address}` | absent | balances need `account:read-own` or `account:read-any` and are audited per attempt | | `/contracts`, `/contract/{address}` | absent | verification recompiles the deployment record out of the block that carries it; without block bodies there is nothing to recompile | | `/identity`, `/domain/{domain}`, `/wnft/{id}` | absent | the domain registry and the wNFT vault are chain state | | `/governance`, `/proposal/{id}` | absent | parameters in force, pools and ballots are chain state | | `/bridge` | absent | reserves, mints and redemptions are chain state | | `/ledgers`, `/ledger/{id}` | absent | balances and supplies are chain state | | `/search` | absent | all seven things search resolves need the chain to resolve against | **Nine of the twelve are `absent`** — genuinely unservable this way — and that is the number the CLI prints. `MEASURED`, and worth stating precisely: **ten** of the twelve paths answer 501, because `/network` is marked `partial` and still answers 501; the half of it that *can* be served is rendered on `/` instead of on its own route. So the honest sentence is: nine panels cannot be served at all, one can be served only partially and is folded into `/`, and two answer. ### Why the limit exists, and why it is not fixed with a key `REASONED`. A node's operator endpoint publishes a head, peers, a depth line and storage. It publishes **no block bodies and no balances**: those routes are authenticated against a Themis roster and audited per attempt. XPlorer holds no key **and must not** — being unauthenticated is what lets it be served publicly. An explorer authenticating as an operator is the thing this surface exists not to be. The remedy is not a key. It is that a chain is public data and anyone may hold a copy. That is §1. ### What it is genuinely right for `REASONED`, three situations following cannot cover: - **A node this process cannot peer with** — a different genesis, a firewall between them, or a node with no listening port. - **A head-and-depth read that costs the node two bounded GETs and this process no disk.** - **The question *what does THIS node believe***, which is different from *what did the network agree*. A follower answers the second; only this answers the first. When you are chasing a node that has diverged, that difference is the entire investigation. An older version of this mode printed the remedy *stop the node and open its directory*, which asks an operator to take their network down in order to look at it. That advice was wrong and is gone; the limit it described was real and remains. --- ## 4. A synthetic chain — no flags, or `--demo` With no `--peers`, no `--dir` and no `--node`, XPlorer builds a chain **in this process** and serves that. `--blocks N` seals N empty blocks; `--demo` seeds a journey — identity, documents, a payment — so the panels have something in them. ```bash node dist/src/cli/strblk.js explorer --demo --port 8113 ``` ```text mode SYNTHETIC — a chain built in this process; no node produced any of it why no --peers, no --dir and no --node were given, so there was no real chain to show genesisHash 8ee28b94b15c1db6cfb7e052d2ade53b5e1a8be5d8698e17a679f4b567a576ea height 9 For a real chain, every panel, against a RUNNING network: strblk explorer --peers XPlorer follows it as its own node Or: strblk explorer --dir Or: strblk explorer --node (head and finality only) ``` `MEASURED`. The banner on every page: ```text A synthetic chain — no node produced any of this Built in this process from the development genesis, 9 block(s) sealed here and seeded with a demonstration. Nothing below is a real balance, a real identity or a real payment. Point XPlorer at a node with --dir or --node to see one. ``` `MEASURED`. This mode exists because the shipped explorer used to do this **and not say so**: it built its own chain, optionally seeded it with a demonstration, and rendered it identically to a real one. The mode is kept and the silence is not. `--genesis FILE` still counts as synthetic. `REASONED`: a genesis file names a chain; it does not mean anything ever ran it. Use it for a screenshot, a UI change, or a demo with no network. Do not use it to answer a question about a chain. --- ## 5. `unstated` — a surface mounted without a provenance There is a fifth answer to *which chain is this*, and it is not a mode you can start from the CLI. The request handler takes provenance as an **optional** option, so a caller that mounts the explorer inside something else — a test, an embedding host, a future surface — can leave it out. `MEASURED`, calling the handler with no provenance: ```json { "mode": "unstated", "note": "This surface was mounted without a provenance. It is not a claim that the chain is real; it is the absence of a claim either way." } ``` **That sentence is the whole reason the case exists**, and it is worth explaining rather than leaving in the code. A missing provenance had three possible designs: 1. **Omit the field.** A reader sees no provenance and supplies their own assumption, which will be *this is real*, because that is what a chain explorer usually is. 2. **Default to something.** Any default is a claim nobody made. Defaulting to `synthetic` slanders a real chain; defaulting to `following` vouches for one nobody checked. 3. **Say that nothing was claimed.** Which is what it does. `REASONED`: the third is the only one that is true. `unstated` is not a fourth kind of chain — it is the surface declining to answer a question it was not told the answer to, and saying so in the field a caller reads. The masthead renders no banner in this case, because there is nothing to say; the page still says, in its footer, that where a value is unknown it says unknown and why. If you see `"mode": "unstated"` on a deployed surface, **that is a wiring defect, not a chain state.** Whoever mounted it did not pass a provenance, and nothing on the page can tell you whether the chain behind it is real. --- ## 6. Read-only, in all four `MEASURED`: `POST /` answers **405** in `--dir` mode; the same refusal is checked before routing and before anything is parsed in every mode. `REASONED`: no handler anywhere below reads a request body, and in `--node` mode nothing can reach the node except the two GETs it makes — so a reader cannot use XPlorer to drive the node it is watching. Every list the explorer serves is a bounded page, and every amount, height and nonce is a decimal **string** rather than a JSON number. `REASONED`: a bigint past 2⁵³ loses precision as a number, and a balance wrong in its last digits is worse than one that is obviously a string. --- ## 7. Where it may listen Loopback by default, and a non-loopback bind is **refused** unless you say what protects it. ``` strblk explorer --host 0.0.0.0 XPlorer will not serve a public explorer in the clear. … ``` `MEASURED` 2026-09-21 against the built CLI: the refusal prints and the process exits without opening a socket, a lease or a peer connection — it is decided at the top of the command, before a mode is chosen, so a following explorer does not take a Cerberus lease on its way to being told no. Three shapes are accepted, the same three `Iris`, `Astrolabe` and `Gungnir` accept: | What you say | What it means | | --- | --- | | nothing | loopback. Plaintext is safe because nothing leaves the machine | | `--tls-cert F --tls-key F` | TLS is terminated in this process. The footer prints `https://` and names the certificate file | | `--behind-tls-proxy` | you assert a terminator stands in front and nothing else reaches this port. The footer prints `PLAINTEXT on this port` and says nothing here checked that | **Why an explorer, which is read-only and shows public data, refuses at all.** Section 6 is the argument for letting it through, and it answers the wrong question. Confidentiality is not what an explorer is for: its job is to be **believed**. It is the page somebody opens to decide whether a payment arrived and which address it went to, nothing rendered is signed, and in the clear anyone on the path rewrites the answer with no signal to the reader. Read-only stops a stranger changing the ledger through this surface; it does nothing about changing what a reader is told the ledger says, which is the cheaper attack. The same path also sees every lookup, which ties an IP to an address and to a STR.domain. A public XPlorer is a reasonable thing to run, and this does not stand in the way of one. It asks for the certificate a public explorer needs anyway. **The IgniteHeX dashboard refuses on the same rule and for a sharper reason**, and its help text invited the mistake until 2026-09-21: that page generates an ed25519 signing key into `localStorage` under its own origin and carries `unsafe-inline` for its one script, so a page rewritten in flight reads the key out with nothing in the browser able to tell. Exposing it does not even work: its content security policy permits `'self'` and loopback, and the node addresses it hands the browser are loopback addresses on the machine serving it, so a viewer elsewhere reaches their own machine or nothing. An SSH tunnel or a VPN to the loopback default is the shape that works, and it needs no flag. --- ## See also - **[RUNNING.md](RUNNING.md)** — starting a network and an explorer from scratch - **[POLARIS.md](POLARIS.md)** — the network these measurements were taken against, and the keystore passphrase §2 needs - **[GUNGNIR.md](GUNGNIR.md)** — the surface that acts, and holds a key on purpose - `docs/NAMING.md` — Fylgja and Vedrfolnir, why they are two components rather than one