℈Scruple Docs v0.1.0-alpha.1

Desktop GUI

Desktop GUI

A pure-Rust desktop wallet with an embedded full node, multi-wallet manager, miner, and multisig cosigner.

Embedded node

scruple-gui embeds the full validating node in-process: P2P, cookie-authenticated JSON-RPC, redb storage, optional pruning, optional txindex, and the RandomX miner. It is not a light client; it validates and relays the chain itself.

Launch

./target/release/scruple-gui \
  --network devnet \
  --data-dir ./data \
  --wallet ./wallet.json

To manage multiple wallets in a directory instead of opening a direct wallet file:

./target/release/scruple-gui \
  --network devnet \
  --data-dir ./data \
  --wallets ./data/wallets \
  --open my-wallet

You can also choose an initial tab with --tab:

./target/release/scruple-gui \
  --network devnet \
  --data-dir ./data \
  --wallet ./wallet.json \
  --tab miner
FlagDescription
--network <mainnet|testnet|devnet>Network preset. Defaults to mainnet.
--data-dir <PATH>Embedded node data directory: chainstate, peers, cookie, and default wallets. Defaults to ./data.
--wallet <PATH>Open or create a direct wallet file.
--wallets <PATH>Multi-wallet directory. Defaults to <data-dir>/wallets.
--open <NAME>Open a wallet by name from --wallets on startup.
--tab <NAME>Initial tab: overview, activity, addresses, coins, send, receive, multisig, or node.
--p2p <ADDR>P2P bind address. Defaults to 127.0.0.1:<network P2P port>.
--rpc <ADDR>Embedded RPC bind address. Defaults to 127.0.0.1:<network RPC port>.
--external-addr <IP:PORT>Public numeric address advertised to peers.
--peer <ADDR>Repeatable explicit peer; bypasses subnet diversity for LAN clusters.
--seed <HOST:PORT>Repeatable additional DNS/bootstrap seed.
--no-dns-seedsDisable built-in DNS seed resolution.
--prune <N>Keep only the most recent N full blocks (minimum 288).
--txindexEnable the persistent transaction index. Mutually exclusive with --prune.
--rpc-cookie <PATH>Mirror the generated RPC cookie to an additional path.

Wallet manager and seed wizard

The GUI can manage multiple wallets in a directory and open them by name. The seed wizard supports creating a fresh wallet, recovering from a 24-word phrase, and generating from bring-your-own-entropy (BYOE) sources. Wallet encryption, lockfile protection, and HD receive/change separation match the CLI.

  • Create: generates a 24-word phrase and shows it once for backup.
  • Recover: accepts a 24-word phrase and derives an initial gap of addresses.
  • BYOE: dice rolls, coin flips, exact hex, or text, optionally mixed with OS RNG.
  • Encrypt: Argon2id + ChaCha20-Poly1305 at rest, with atomic 0600 writes.
  • Lock: an exclusive sidecar lock prevents concurrent CLI/GUI mutation.

Tabs

Overview

Overview & Miner

Chain status, balance summary, and a live RandomX solo miner with per-block rotating payout addresses.

Activity

Activity

Chain-synced transaction history with mined, received, sent, self, and pending entries, plus a full transaction detail view.

Addresses

Addresses

Even receive and odd change address chains, inline labels, and address export.

Coins

Coins

UTXO list with freeze/unfreeze, labels, maturity state, and multi-select coin control.

Send

Send

Live mempool fee presets (Min/Normal/Priority), Send Max, exact byte/fee preview, and two-step confirmation.

Receive

Receive

Fresh unused even receive address with a QR code and optional label.

Multisig

Multisig / Cosign

xsl2: vault derivation and PartialTx sign, merge, finalize, and broadcast.

Node

Node & Peers

Genesis information, recent blocks, mempool, active peers, and the ban list.

Mining in the GUI

The Overview tab runs a RandomX solo miner against the embedded node. It supports thread selection, Light or Full-Memory mode, live hashrate, and payout rotation when a wallet is open. Each accepted block is labeled and the miner rotates to the next unused even receive address, just like scruple mine --wallet.

Full-Memory RAM

Enabling Full-Memory mode allocates a ~2 GB RandomX dataset. Ensure the machine has roughly 2.5 GB free RAM before enabling it, especially while the embedded node and GUI are running.

Sending with the GUI

The Send tab uses a two-step flow:

  1. Enter a recipient address, amount, and fee preference. The GUI shows an exact transaction preview with serialized bytes, inputs, outputs, change, and fee.
  2. Review and confirm, then broadcast. The wallet persists the pending spend before submitting so a crash cannot lose the double-spend lock.

Fee presets are derived from the live mempool. Min uses the minimum relay rate, Normal targets a competitive rate, and Priority targets faster inclusion. Send Max sweeps selected or economical mature UTXOs into a single output with zero change.

Coin control and labels

The Coins tab supports freezing UTXOs, assigning labels, and selecting specific coins for a spend. Frozen coins are excluded from automatic selection and rejected by explicit coin control until unfrozen. Labels are stored in the wallet file and can be applied to addresses or outpoints.

Receive and QR

The Receive tab derives a fresh unused even receive address and renders a QR code. Verify the address on the receiving device and prefer Bech32m addresses with a network prefix and checksum. Legacy xsl1: hex addresses are also supported.

Multisig in the GUI

The Multisig / Cosign tab can derive a vault from cosigner public keys, create a PartialTx, add signatures from the open wallet, merge cosigner files, finalize the threshold, and broadcast. It follows the same canonical rules as the CLI. See Multisig.

Node and peer view

The Node & Peers tab shows genesis parameters, recent blocks, mempool contents, connected peers with direction and height, and the IP ban list. It is a read-only operational view; use the CLI or RPC for scripted control.

Operational notes

  • The GUI holds the wallet lock while a wallet is open. Close the wallet or the GUI before running mutating CLI commands on the same file.
  • The embedded node writes <data-dir>/.cookie on startup. External scripts can use the same RPC endpoint while the GUI runs.
  • RPC remains plaintext HTTP. Keep it on localhost unless you add a TLS proxy.
  • Use --network devnet or --network testnet for experimentation; mainnet defaults are real funds.
  • Back up the 24-word phrase, not just the wallet file.
  • If the GUI fails to start on Wayland/X11, check the graphics drivers and the eframe backend; the CLI node has no GUI dependencies.

Scruple Docs · v0.1.0-alpha.1 · Mainnet candidate

Scruple is alpha software. Verify commands against --help and the protocol specification before relying on them.