CLI Reference
CLI Reference
Every command and flag for the headless scruple binary and the scruple-gui desktop app.
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
| Variable | Used by | Purpose |
|---|---|---|
SCRUPLE_PASSPHRASE | Wallet, send, mine, multisig sign | Non-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]| Flag | Default | Description |
|---|---|---|
--wallet <PATH> | ./wallet.json | Wallet file path. |
--encrypt | off | Prompt for a passphrase and encrypt at rest. |
--passphrase <STR> | none | Encryption passphrase. Discouraged; use --encrypt or the environment variable. |
--entropy-dice <ROLLS> | none | BYOE dice rolls (1–6). |
--entropy-coins <FLIPS> | none | BYOE coin flips (0/1/H/T). |
--entropy-hex <HEX> | none | BYOE exact 64-character hex (32 bytes). |
--entropy-text <TEXT> | none | BYOE arbitrary text. |
--no-mix-os-rng | off | Do 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.
| Flag | Default | Description |
|---|---|---|
--mnemonic <WORDS> | prompt | Recovery phrase. Omit to be prompted without shell history. |
--wallet <PATH> | ./wallet.json | Destination wallet file. Must not exist. |
--encrypt | off | Prompt for a passphrase and encrypt at rest. |
--passphrase <STR> | none | Encryption passphrase. Discouraged. |
--gap-limit <N> | 20 | Initial 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.
| Flag | Default | Description |
|---|---|---|
--network <NETWORK> | mainnet | Used to resolve the default RPC port. |
--rpc <ADDR> | 127.0.0.1:<port> | Node RPC address. |
--data-dir <PATH> | ./data | Reads .cookie from this directory. |
--cookie <HEX|PATH> | none | Explicit cookie token or file path. |
--wallet <PATH> | ./wallet.json | Wallet to rescan. |
--passphrase <STR> | none | Wallet passphrase. Discouraged. |
--gap-limit <N> | 20 | Consecutive 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.
| Flag | Default | Description |
|---|---|---|
--wallet <PATH> | ./wallet.json | Wallet file. |
--passphrase <STR> | none | Wallet passphrase. Discouraged. |
wallet list
List derived receive/change addresses, wallet type, encryption status, key count, pending outgoing UTXOs, and recent local transactions.
| Flag | Default | Description |
|---|---|---|
--network <NETWORK> | none | Also print checksummed Bech32m addresses for the network. |
--wallet <PATH> | ./wallet.json | Wallet file. |
--passphrase <STR> | none | Wallet passphrase. Discouraged. |
wallet pubkey
Print the 83-byte SQIsign public key hex (166 characters) for a wallet index, for multisig coordination.
| Flag | Default | Description |
|---|---|---|
--wallet <PATH> | ./wallet.json | Wallet file. |
--index <N> | 0 | HD address index, or 0-based position for legacy wallets. |
--passphrase <STR> | none | Wallet passphrase. Discouraged. |
scruple multisig
multisig address
Derive a canonical M-of-N xsl2: vault address from N cosigner public keys.
| Flag | Default | Description |
|---|---|---|
--threshold <M> | required | Required signatures, 1 <= M <= N <= 15. |
--pubkey <HEX> | required, repeatable | 83-byte SQIsign public key (166 hex chars). |
--network <NETWORK> | none | Emit Bech32m for the network instead of legacy xsl2: hex. |
multisig propose
Build an unsigned PartialTx JSON for offline cosigning.
| Flag | Default | Description |
|---|---|---|
--network <NETWORK> | mainnet | Default RPC port resolution. |
--rpc <ADDR> | 127.0.0.1:<port> | Node RPC address. |
--data-dir <PATH> | ./data | Reads .cookie and writes pending-multisig.json. |
--cookie <HEX|PATH> | none | Explicit cookie token or file path. |
--threshold <M> | required | Vault threshold. |
--pubkey <HEX> | required, repeatable | Cosigner public keys. |
--to <ADDR> | required | Recipient address. |
--amount <XSL> | none | Amount in XSL; omit with --send-max. |
--send-max | off | Sweep selected/mature vault UTXOs minus fee. |
--fee-rate <GR/B> | 1 | Fee rate in grains per serialized byte. |
--fee <XSL> | none | Explicit fee override, floored at bytes × rate. |
--out <PATH> | required | Unsigned PartialTx output path. |
--coin <H:T:O> | none, repeatable | Explicit vault UTXO selection. |
--exclude <H:T:O> | none, repeatable | Outpoints to exclude. |
--ignore-pending | off | Ignore tracked pending multisig outpoints. |
multisig sign
Offline-sign a PartialTx JSON with any matching SQIsign cosigner key(s) in a local wallet.
| Flag | Default | Description |
|---|---|---|
--in <PATH> | required | Input PartialTx JSON. |
--wallet <PATH> | ./wallet.json | Cosigner wallet. |
--passphrase <STR> | none | Wallet passphrase. Discouraged. |
--out <PATH> | input path | Updated JSON output path. |
multisig finalize
Verify threshold signatures, assemble the canonical transaction, and optionally broadcast.
| Flag | Default | Description |
|---|---|---|
--in <PATH> | required | Signed PartialTx JSON. |
--broadcast | off | Broadcast via submit_tx. |
--fast-fluff | off | Bypass Dandelion++ stem delay. |
--network <NETWORK> | mainnet | Default RPC port resolution. |
--rpc <ADDR> | 127.0.0.1:<port> | Node RPC address. |
--data-dir <PATH> | ./data | Reads .cookie when broadcasting. |
--cookie <HEX|PATH> | none | Explicit cookie token or file path. |
scruple node
Run a full validating node with P2P, JSON-RPC, redb storage, and optional pruning or txindex.
| Flag | Default | Description |
|---|---|---|
--network <mainnet|testnet|devnet> | mainnet | Network preset. |
--data-dir <PATH> | ./data | Chainstate, 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> | none | Public numeric address advertised in P2P HELLO. |
--peer <ADDR> | none, repeatable | Explicit peer; bypasses subnet diversity. |
--seed <HOST:PORT> | none, repeatable | Additional DNS/bootstrap seed. |
--no-dns-seeds | off | Disable built-in DNS seeds. |
--prune <N> | none | Keep the most recent N full blocks (minimum 288). |
--txindex | off | Persistent confirmed-tx index. Mutually exclusive with --prune. |
--rpc-cookie <PATH> | none | Mirror 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.
| Flag | Default | Description |
|---|---|---|
--network <mainnet|testnet|devnet> | mainnet | Network to inspect. |
scruple info
Query live chain status from a running node. Reads <data-dir>/.cookie automatically.
| Flag | Default | Description |
|---|---|---|
--network <NETWORK> | none | Resolve the default RPC port. |
--rpc <ADDR> | 127.0.0.1:18332 | Node RPC address. |
--data-dir <PATH> | ./data | Reads .cookie from this directory. |
--cookie <HEX|PATH> | none | Explicit cookie token or file path. Alias: --rpc-cookie. |
scruple mine
Mine RandomX blocks on a running node. See Mining for behaviour and payout rotation.
| Flag | Default | Description |
|---|---|---|
--network <NETWORK> | none | Resolve the default RPC port. |
--rpc <ADDR> | 127.0.0.1:18332 | Node RPC address. |
--data-dir <PATH> | ./data | Reads .cookie. |
--cookie <HEX|PATH> | none | Explicit cookie token or file path. |
--wallet <PATH> | none | Mine to the wallet's next unused receive address and rotate per block. |
--passphrase <STR> | none | Wallet passphrase. Discouraged. |
--to <ADDR> | none | Explicit reward address; overrides --wallet, no rotation. |
--blocks <N> | 1 | Blocks to mine; in continuous mode, an optional cap. |
--continuous | off | Long-lived miner with 2-second tip watcher and Ctrl-C shutdown. |
--threads <N> | 1 | RandomX worker threads. |
--full-mem | off | RandomX Full-Memory mode (~2 GB dataset). |
scruple balance
Show mature, immature, and pending outgoing balances for a wallet.
| Flag | Default | Description |
|---|---|---|
--network <NETWORK> | none | Resolve the default RPC port. |
--rpc <ADDR> | 127.0.0.1:18332 | Node RPC address. |
--data-dir <PATH> | ./data | Reads .cookie. |
--cookie <HEX|PATH> | none | Explicit cookie token or file path. |
--wallet <PATH> | ./wallet.json | Wallet file. |
--passphrase <STR> | none | Wallet passphrase. Discouraged. |
scruple send
Build, sign, and broadcast a single-recipient or multi-recipient transaction.
| Flag | Default | Description |
|---|---|---|
--network <NETWORK> | none | Resolve the default RPC port and network-scoped addresses. |
--rpc <ADDR> | 127.0.0.1:18332 | Node RPC address. |
--data-dir <PATH> | ./data | Reads .cookie. |
--cookie <HEX|PATH> | none | Explicit cookie token or file path. |
--wallet <PATH> | ./wallet.json | Wallet file. |
--passphrase <STR> | none | Wallet passphrase. Discouraged. |
--to <ADDR> | required | Recipient. Repeat as <addr>=<XSL> for a batch. |
--amount <XSL> | none | Amount for single-recipient mode. |
--send-max | off | Sweep selected/economical mature UTXOs minus fee. |
--fit-max | off | With --send-max, sweep the maximum batch that fits in one transaction. |
--fast-fluff | off | Bypass Dandelion++ stem delay. |
--fee-rate <GR/B> | 1 | Fee rate in grains per serialized byte. Minimum 1. |
--fee <XSL> | none | Explicit fee override, floored at bytes × rate. |
--coin <H:T:O> | none, repeatable | Explicit UTXO selection. |
scruple bump-fee
Bump the fee of a stuck unconfirmed transaction with Ownership-Proven FSS-RBF.
| Flag | Default | Description |
|---|---|---|
--network <NETWORK> | none | Resolve the default RPC port. |
--rpc <ADDR> | 127.0.0.1:18332 | Node RPC address. |
--data-dir <PATH> | ./data | Reads .cookie. |
--cookie <HEX|PATH> | none | Explicit cookie token or file path. |
--wallet <PATH> | ./wallet.json | Wallet file. |
--passphrase <STR> | none | Wallet passphrase. Discouraged. |
--txid <64-HEX> | required | Stuck unconfirmed transaction id. |
--fee-rate <GR/B> | required | Target 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.
| Flag | Default | Description |
|---|---|---|
--network <mainnet|testnet|devnet> | mainnet | Network preset. |
--data-dir <PATH> | ./data | Embedded node data directory. |
--wallet <PATH> | none | Open or create a direct wallet file. |
--wallets <PATH> | <data-dir>/wallets | Multi-wallet directory. |
--open <NAME> | none | Open a wallet by name from --wallets. |
--tab <NAME> | overview | Initial 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> | none | Public numeric address advertised to peers. |
--peer <ADDR> | none, repeatable | Explicit peer; bypasses subnet diversity. |
--seed <HOST:PORT> | none, repeatable | Additional DNS/bootstrap seed. |
--no-dns-seeds | off | Disable built-in DNS seeds. |
--prune <N> | none | Keep the most recent N full blocks (minimum 288). |
--txindex | off | Persistent tx index. Mutually exclusive with --prune. |
--rpc-cookie <PATH> | none | Mirror the RPC cookie to an extra path. |
Exit behaviour
- Successful commands exit with status
0. - Errors print
error: ...to stderr and exit with status1. - The node handles
SIGINTandSIGTERMfor a clean shutdown and peer persistence. - The continuous miner handles Ctrl-C cleanly and prints a final JSON statistics summary.