A place for your sats
- Watch-Only Wallet: Initialize with public key descriptors for enhanced security
- Network Support: Mainnet and test networks
- Simple Configuration: Setup configuration via toml file
- Address Generation: Generate receive addresses
- Balance Management: View confirmed and unconfirmed balances
- UTXO Management: List unspent transaction outputs
- Blockchain Sync: Synchronize with Bitcoin network via Electrum
- PSBT Creation: Create unsigned PSBTs
Requires:
git clone https://github.com/ValuedMammal/satchl && cd satchl
cargo update
cargo install --locked --path .The binary will be at ~/.cargo/bin/satchl.
Satchl uses a configuration file located at ~/.satchl/config.toml (or $SATCHL_DATADIR/config.toml).
SATCHL_DATADIR(optional): Data directory (default:~/.satchl)SATCHL_XKEY(optional): Extended private key for signing transactions
See sample-config.toml for a sample of the configuration file.
ssl://electrum.blockstream.info:50002(Blockstream - mainnet)ssl://bitcoin.lu.ke:50002(lu.ke - mainnet)- Your own
romanz/electrsinstance
Create ~/.satchl/config.toml with your wallet configuration:
network = "bitcoin"
electrum_url = "ssl://electrum.blockstream.info:50002"
descriptors = [
"wpkh([d34dbeef/84h/0h/0h]xpub.../0/*)",
"wpkh([d34dbeef/84h/0h/0h]xpub.../1/*)",
]satchl newThis creates a wallet database at ~/.satchl/wallet.db (or wallet-signet.db for Signet, etc.).
satchl syncUsage: satchl <COMMAND>
Commands:
new Initialize a new wallet
address Generate a new receive address
balance Display wallet balance
utxos List unspent transaction outputs
sync Synchronize wallet with blockchain
send Send to address
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print versionCreate an unsigned PSBT:
Usage: satchl send [OPTIONS] --amount <AMOUNT> <ADDRESS>
Arguments:
<ADDRESS> Recipient address
Options:
-a, --amount <AMOUNT> Amount in satoshis
-f, --fee-rate <FEE_RATE> Fee rate in sat/vB [default: 1.0]
-s, --sign Sign the transaction
-b, --broadcast Broadcast signed transaction (implies --sign)
-h, --help Print helpExample:
satchl send bc1qg35sdfjkpk9dwcxmx9t8qmnju9cl8g42cnry50 \
--amount 21000 \
--fee-rate 2To sign, set your extended private key as an environment variable:
export SATCHL_XKEY="xprv..."Then use the --sign flag:
satchl send bc1q... --amount 10000 --fee-rate 2 --signTo sign and broadcast in one step:
satchl send bc1q... --amount 10000 --fee-rate 2 --broadcastThe output includes:
- Final transaction in hex format
- Transaction ID
- CLI:
clapfor command-line interface - Wallet:
bdk_walletwith SQLite persistence - Blockchain:
bdk_electrumfor Electrum protocol
Wallet databases are stored in the satchl data directory:
- Default:
~/.satchl/ - Custom: Set
SATCHL_DATADIRenvironment variable
Database files:
wallet.db- Bitcoin (mainnet)wallet-signet.db- Signetwallet-testnet.db- Testnetwallet-testnet4.db- Testnet4wallet-regtest.db- Regtest
# Check code
cargo check
# Run tests
cargo test
# Build debug
cargo build
# Build release
cargo build --releaseSee Cargo.toml for project metadata.