About · XSL / ℈

Scruple Explorer

A self-hosted block explorer for the Scruple post-quantum UTXO node. It talks to the node's local JSON-RPC through a server-side proxy, so the RPC cookie stays on the server and never reaches the browser.

Connection
connected
RPC endpoint
http://127.0.0.1:18332
Cookie source
SCRUPLE_COOKIE_FILE
Network
mainnet
Height
182
Tx index
enabled
Peers
3
Units and policy
Ticker
XSL · ℈
Base unit
grains
Grains per XSL
100,000,000
Block subsidy
1 XSL
Dust floor
0.00005 XSL
Target block time
300 seconds
Relay floor
1 grain / byte
Mempool cap
50,000,000 bytes

Fees and fee rates in this explorer are denominated in grains. 1 grain is 0.00000001 XSL. Fee estimates are simple percentiles of the local mempool.

Run the explorer

Point the explorer at a running node. The node must be started with its JSON-RPC bound to localhost and, for indexed confirmed-transaction lookups, with --txindex.

scruple node \
  --network mainnet \
  --data-dir ./mainnet-data \
  --rpc 127.0.0.1:18332 \
  --txindex

Then configure the explorer's .env:

SCRUPLE_RPC_URL=http://127.0.0.1:18332
SCRUPLE_COOKIE_FILE=../scruple/mainnet-data/.cookie

npm install
npm run dev

For production, build the adapter-node server and run it behind a reverse proxy:

npm run build
PORT=3000 node build/index.js

Alternatively set SCRUPLE_COOKIE to the 64-hex cookie value, or SCRUPLE_DATA_DIR to the node data directory. Relative cookie paths resolve from the explorer's working directory.

Privacy

The browser only talks to this explorer. Every node RPC request is made by the SvelteKit server, which reads <data-dir>/.cookie and sends it in the X-Scruple-Cookie header. The cookie is never serialized into page data or API responses.

Requirements
  • A running Scruple node with local JSON-RPC.
  • The node's .cookie file, readable by the explorer process.
  • --txindex for fast confirmed-tx lookups (otherwise recent blocks are scanned).
  • An unpruned node for complete block and address history.
Limitations
  • Address history is replayed on demand by the node, not indexed per address.
  • Pruned nodes may omit old block bodies and address history.
  • Fee guidance reflects only this node's local mempool.
  • Block and tx data come directly from the node RPC; this explorer adds no indexer.
JSON API
server-side RPC proxy
EndpointReturns
/api/infoNode chain, mempool, peer, and txindex status.
/api/dashboardAggregated chain stats, latest blocks, mempool, and fees.
/api/blocks?before=&after=&count=Paginated header window.
/api/block/<height-or-hash>Decoded block and transactions.
/api/tx/<txid>Decoded transaction or mempool summary.
/api/address/<xsl1-or-xsl2>Balance, UTXOs, and address history.
/api/mempoolPending transaction summaries.
/api/search?q=Resolved explorer route for a query.

Scruple is experimental software. This explorer is a read-only view of a node's RPC; it never signs transactions and never holds keys.

Learn how to build and operate a node in the documentation, or read the project overview at scruple.money.