℈Scruple Docs v0.1.0-alpha.1

CLI Reference

CLI Reference

Every command and flag for the headless scruple binary and the scruple-gui desktop app.

Help is authoritative

This page mirrors the current CLI. Run scruple <command> --help or scruple-gui --help to confirm flags for your build.

Global shape

scruple <COMMAND> [OPTIONS]
scruple wallet <ACTION> [OPTIONS]
scruple multisig <ACTION> [OPTIONS]
scruple-gui [OPTIONS]

Common options such as --network, --rpc, --data-dir, and --cookie appear on client commands. The node itself uses --p2p, --rpc, --external-addr, --peer, --seed, --prune, and --txindex.

Environment variables

VariableUsed byPurpose
SCRUPLE_PASSPHRASEWallet, send, mine, multisig signNon-interactive wallet passphrase. Preferred over --passphrase.

scruple wallet

wallet new

Create a new HD wallet, or derive the next receive address if the wallet file already exists.

scruple wallet new [OPTIONS]
FlagDefaultDescription
--wallet <PATH>./wallet.jsonWallet file path.
--encryptoffPrompt for a passphrase and encrypt at rest.
--passphrase <STR>noneEncryption passphrase. Discouraged; use --encrypt or the environment variable.
--entropy-dice <ROLLS>noneBYOE dice rolls (1–6).
--entropy-coins <FLIPS>noneBYOE coin flips (0/1/H/T).
--entropy-hex <HEX>noneBYOE exact 64-character hex (32 bytes).
--entropy-text <TEXT>noneBYOE arbitrary text.
--no-mix-os-rngoffDo not mix 32 bytes of OS RNG with BYOE input. Requires a BYOE flag.

wallet recover

Recover a deterministic HD wallet from a 24-word BIP-39 mnemonic. The destination must not already exist.

FlagDefaultDescription
--mnemonic <WORDS>promptRecovery phrase. Omit to be prompted without shell history.
--wallet <PATH>./wallet.jsonDestination wallet file. Must not exist.
--encryptoffPrompt for a passphrase and encrypt at rest.
--passphrase <STR>noneEncryption passphrase. Discouraged.
--gap-limit <N>20Initial receive addresses to derive.

wallet rescan

Rescan a running node's UTXO set and ever-seen address index to discover used receive and change addresses.

FlagDefaultDescription
--network <NETWORK>mainnetUsed to resolve the default RPC port.
--rpc <ADDR>127.0.0.1:<port>Node RPC address.
--data-dir <PATH>./dataReads .cookie from this directory.
--cookie <HEX|PATH>noneExplicit cookie token or file path.
--wallet <PATH>./wallet.jsonWallet to rescan.
--passphrase <STR>noneWallet passphrase. Discouraged.
--gap-limit <N>20Consecutive unused addresses to scan past the highest used index.

wallet clear-pending

Clear local pending outgoing UTXO locks and pending raw transactions. Use only when a broadcast transaction is known to be dead.

FlagDefaultDescription
--wallet <PATH>./wallet.jsonWallet file.
--passphrase <STR>noneWallet passphrase. Discouraged.

wallet list

List derived receive/change addresses, wallet type, encryption status, key count, pending outgoing UTXOs, and recent local transactions.

FlagDefaultDescription
--network <NETWORK>noneAlso print checksummed Bech32m addresses for the network.
--wallet <PATH>./wallet.jsonWallet file.
--passphrase <STR>noneWallet passphrase. Discouraged.

wallet pubkey

Print the 83-byte SQIsign public key hex (166 characters) for a wallet index, for multisig coordination.

FlagDefaultDescription
--wallet <PATH>./wallet.jsonWallet file.
--index <N>0HD address index, or 0-based position for legacy wallets.
--passphrase <STR>noneWallet passphrase. Discouraged.

scruple multisig

multisig address

Derive a canonical M-of-N xsl2: vault address from N cosigner public keys.

FlagDefaultDescription
--threshold <M>requiredRequired signatures, 1 <= M <= N <= 15.
--pubkey <HEX>required, repeatable83-byte SQIsign public key (166 hex chars).
--network <NETWORK>noneEmit Bech32m for the network instead of legacy xsl2: hex.

multisig propose

Build an unsigned PartialTx JSON for offline cosigning.

FlagDefaultDescription
--network <NETWORK>mainnetDefault RPC port resolution.
--rpc <ADDR>127.0.0.1:<port>Node RPC address.
--data-dir <PATH>./dataReads .cookie and writes pending-multisig.json.
--cookie <HEX|PATH>noneExplicit cookie token or file path.
--threshold <M>requiredVault threshold.
--pubkey <HEX>required, repeatableCosigner public keys.
--to <ADDR>requiredRecipient address.
--amount <XSL>noneAmount in XSL; omit with --send-max.
--send-maxoffSweep selected/mature vault UTXOs minus fee.
--fee-rate <GR/B>1Fee rate in grains per serialized byte.
--fee <XSL>noneExplicit fee override, floored at bytes × rate.
--out <PATH>requiredUnsigned PartialTx output path.
--coin <H:T:O>none, repeatableExplicit vault UTXO selection.
--exclude <H:T:O>none, repeatableOutpoints to exclude.
--ignore-pendingoffIgnore tracked pending multisig outpoints.

multisig sign

Offline-sign a PartialTx JSON with any matching SQIsign cosigner key(s) in a local wallet.

FlagDefaultDescription
--in <PATH>requiredInput PartialTx JSON.
--wallet <PATH>./wallet.jsonCosigner wallet.
--passphrase <STR>noneWallet passphrase. Discouraged.
--out <PATH>input pathUpdated JSON output path.

multisig finalize

Verify threshold signatures, assemble the canonical transaction, and optionally broadcast.

FlagDefaultDescription
--in <PATH>requiredSigned PartialTx JSON.
--broadcastoffBroadcast via submit_tx.
--fast-fluffoffBypass Dandelion++ stem delay.
--network <NETWORK>mainnetDefault RPC port resolution.
--rpc <ADDR>127.0.0.1:<port>Node RPC address.
--data-dir <PATH>./dataReads .cookie when broadcasting.
--cookie <HEX|PATH>noneExplicit cookie token or file path.

scruple node

Run a full validating node with P2P, JSON-RPC, redb storage, and optional pruning or txindex.

FlagDefaultDescription
--network <mainnet|testnet|devnet>mainnetNetwork preset.
--data-dir <PATH>./dataChainstate, peers, cookie, and related state.
--p2p <ADDR>127.0.0.1:<P2P port>TCP P2P bind address.
--rpc <ADDR>127.0.0.1:<RPC port>HTTP JSON-RPC bind address.
--external-addr <IP:PORT>nonePublic numeric address advertised in P2P HELLO.
--peer <ADDR>none, repeatableExplicit peer; bypasses subnet diversity.
--seed <HOST:PORT>none, repeatableAdditional DNS/bootstrap seed.
--no-dns-seedsoffDisable built-in DNS seeds.
--prune <N>noneKeep the most recent N full blocks (minimum 288).
--txindexoffPersistent confirmed-tx index. Mutually exclusive with --prune.
--rpc-cookie <PATH>noneMirror the RPC cookie to an extra path.

scruple genesis

Print the deterministic genesis block, genesis commitment, hash, and RandomX Epoch-0 seed for a network.

FlagDefaultDescription
--network <mainnet|testnet|devnet>mainnetNetwork to inspect.

scruple info

Query live chain status from a running node. Reads <data-dir>/.cookie automatically.

FlagDefaultDescription
--network <NETWORK>noneResolve the default RPC port.
--rpc <ADDR>127.0.0.1:18332Node RPC address.
--data-dir <PATH>./dataReads .cookie from this directory.
--cookie <HEX|PATH>noneExplicit cookie token or file path. Alias: --rpc-cookie.

scruple mine

Mine RandomX blocks on a running node. See Mining for behaviour and payout rotation.

FlagDefaultDescription
--network <NETWORK>noneResolve the default RPC port.
--rpc <ADDR>127.0.0.1:18332Node RPC address.
--data-dir <PATH>./dataReads .cookie.
--cookie <HEX|PATH>noneExplicit cookie token or file path.
--wallet <PATH>noneMine to the wallet's next unused receive address and rotate per block.
--passphrase <STR>noneWallet passphrase. Discouraged.
--to <ADDR>noneExplicit reward address; overrides --wallet, no rotation.
--blocks <N>1Blocks to mine; in continuous mode, an optional cap.
--continuousoffLong-lived miner with 2-second tip watcher and Ctrl-C shutdown.
--threads <N>1RandomX worker threads.
--full-memoffRandomX Full-Memory mode (~2 GB dataset).

scruple balance

Show mature, immature, and pending outgoing balances for a wallet.

FlagDefaultDescription
--network <NETWORK>noneResolve the default RPC port.
--rpc <ADDR>127.0.0.1:18332Node RPC address.
--data-dir <PATH>./dataReads .cookie.
--cookie <HEX|PATH>noneExplicit cookie token or file path.
--wallet <PATH>./wallet.jsonWallet file.
--passphrase <STR>noneWallet passphrase. Discouraged.

scruple send

Build, sign, and broadcast a single-recipient or multi-recipient transaction.

FlagDefaultDescription
--network <NETWORK>noneResolve the default RPC port and network-scoped addresses.
--rpc <ADDR>127.0.0.1:18332Node RPC address.
--data-dir <PATH>./dataReads .cookie.
--cookie <HEX|PATH>noneExplicit cookie token or file path.
--wallet <PATH>./wallet.jsonWallet file.
--passphrase <STR>noneWallet passphrase. Discouraged.
--to <ADDR>requiredRecipient. Repeat as <addr>=<XSL> for a batch.
--amount <XSL>noneAmount for single-recipient mode.
--send-maxoffSweep selected/economical mature UTXOs minus fee.
--fit-maxoffWith --send-max, sweep the maximum batch that fits in one transaction.
--fast-fluffoffBypass Dandelion++ stem delay.
--fee-rate <GR/B>1Fee rate in grains per serialized byte. Minimum 1.
--fee <XSL>noneExplicit fee override, floored at bytes × rate.
--coin <H:T:O>none, repeatableExplicit UTXO selection.

scruple bump-fee

Bump the fee of a stuck unconfirmed transaction with Ownership-Proven FSS-RBF.

FlagDefaultDescription
--network <NETWORK>noneResolve the default RPC port.
--rpc <ADDR>127.0.0.1:18332Node RPC address.
--data-dir <PATH>./dataReads .cookie.
--cookie <HEX|PATH>noneExplicit cookie token or file path.
--wallet <PATH>./wallet.jsonWallet file.
--passphrase <STR>noneWallet passphrase. Discouraged.
--txid <64-HEX>requiredStuck unconfirmed transaction id.
--fee-rate <GR/B>requiredTarget new fee rate; must exceed the original by at least 1 grain/byte.

scruple-gui

Launch the desktop wallet and embedded node. See Desktop GUI for the tab walkthrough.

FlagDefaultDescription
--network <mainnet|testnet|devnet>mainnetNetwork preset.
--data-dir <PATH>./dataEmbedded node data directory.
--wallet <PATH>noneOpen or create a direct wallet file.
--wallets <PATH><data-dir>/walletsMulti-wallet directory.
--open <NAME>noneOpen a wallet by name from --wallets.
--tab <NAME>overviewInitial tab: overview, activity, addresses, coins, send, receive, multisig, node.
--p2p <ADDR>127.0.0.1:<P2P port>P2P bind address.
--rpc <ADDR>127.0.0.1:<RPC port>RPC bind address.
--external-addr <IP:PORT>nonePublic numeric address advertised to peers.
--peer <ADDR>none, repeatableExplicit peer; bypasses subnet diversity.
--seed <HOST:PORT>none, repeatableAdditional DNS/bootstrap seed.
--no-dns-seedsoffDisable built-in DNS seeds.
--prune <N>noneKeep the most recent N full blocks (minimum 288).
--txindexoffPersistent tx index. Mutually exclusive with --prune.
--rpc-cookie <PATH>noneMirror the RPC cookie to an extra path.

Exit behaviour

  • Successful commands exit with status 0.
  • Errors print error: ... to stderr and exit with status 1.
  • The node handles SIGINT and SIGTERM for a clean shutdown and peer persistence.
  • The continuous miner handles Ctrl-C cleanly and prints a final JSON statistics summary.

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.