| name | wallet-cli |
| description | How to run watch, keygen, and sign wallet CLI commands. Use when executing wallet commands or testing wallet functionality. |
Wallet CLI Usage
Full command tree: internal/interface-adapters/cli/README.md
Guide for running the three wallet types: watch, keygen, and sign.
Prerequisites
- Wallets must be built:
make build
- Configuration files must exist in
config/wallet/
- For BTC/BCH: Bitcoin Core node running (for watch wallet)
- For ETH: Ethereum node running (for watch wallet)
Required Flags
See Global Flags in the CLI README.
Configuration Files
config/wallet/
├── btc/
│ ├── watch.yaml # Watch wallet config
│ ├── keygen.yaml # Keygen wallet config
│ ├── sign1.yaml # Sign wallet config (auth1)
│ └── sign2.yaml # Sign wallet config (auth2)
├── bch/
│ └── ... # Same structure as btc/
├── eth/
│ └── ...
├── xrp/
│ └── ...
└── account/
├── account.yaml # Single-sig account config
├── account_2of3.yaml # 2-of-3 multisig config
└── account_3of3.yaml # 3-of-3 multisig config
Watch Wallet
Online wallet for creating unsigned transactions and sending signed transactions.
Common Commands
watch --config config/wallet/btc/watch.yaml --coin btc create deposit
watch --config config/wallet/btc/watch.yaml --coin btc create payment
watch --config config/wallet/btc/watch.yaml --coin btc send tx --file data/tx/btc/payment_signed.psbt
watch --config config/wallet/btc/watch.yaml --coin btc import address --file data/address/btc/addresses.csv
watch --config config/wallet/btc/watch.yaml --coin btc import descriptor --file data/descriptor/btc/descriptors.json --account payment
watch --config config/wallet/btc/watch.yaml --coin btc monitor senttx --account deposit
watch --config config/wallet/btc/watch.yaml --coin btc api balance --account payment
watch --config config/wallet/btc/watch.yaml --coin btc api listunspent --account payment
Keygen Wallet
Offline cold wallet for key generation and first signature.
Common Commands
keygen --config config/wallet/btc/keygen.yaml --coin btc create seed
keygen --config config/wallet/btc/keygen.yaml --coin btc create hdkey --account client --keynum 10
keygen --config config/wallet/btc/keygen.yaml --coin btc export address --account client
keygen --config config/wallet/btc/keygen.yaml --coin btc create descriptor export --account payment --output data/descriptor/btc/payment.json
keygen --config config/wallet/btc/keygen.yaml --coin btc import privkey --account client
keygen --config config/wallet/btc/keygen.yaml --coin btc sign signature --file data/tx/btc/payment_unsigned.psbt
keygen --config config/wallet/btc/keygen.yaml --account-config config/wallet/account/account_2of3.yaml --coin btc create multisig --account payment
Sign Wallet
Offline cold wallet for additional signatures on multisig transactions.
Note: Sign wallet only supports btc and bch coins.
Common Commands
sign1 --config config/wallet/btc/sign1.yaml --coin btc create seed
sign1 --config config/wallet/btc/sign1.yaml --coin btc create hdkey
sign1 --config config/wallet/btc/sign1.yaml --coin btc export fullpubkey
sign1 --config config/wallet/btc/sign1.yaml --coin btc import privkey
sign1 --config config/wallet/btc/sign1.yaml --coin btc sign signature --file data/tx/btc/payment_unsigned_1.psbt
Multi-Coin Examples
Ethereum
watch --config config/wallet/eth/watch.yaml --coin eth create deposit
watch --config config/wallet/eth/watch.yaml --coin eth api syncing
keygen --config config/wallet/eth/keygen.yaml --coin eth create seed
keygen --config config/wallet/eth/keygen.yaml --coin eth create hdkey --account client --keynum 10
Ripple (XRP)
watch --config config/wallet/xrp/watch.yaml --coin xrp create deposit
keygen --config config/wallet/xrp/keygen.yaml --coin xrp create seed
keygen --config config/wallet/xrp/keygen.yaml --coin xrp create hdkey --account client --keynum 10
E2E Script Usage
E2E scripts set config paths as variables and use -c short flag:
BTC_CONFIG_WATCH="${PROJECT_ROOT}/config/wallet/btc/watch.yaml"
BTC_CONFIG_KEYGEN="${PROJECT_ROOT}/config/wallet/btc/keygen.yaml"
watch -c "${BTC_CONFIG_WATCH}" --coin btc create payment
keygen -c "${BTC_CONFIG_KEYGEN}" --coin btc sign signature --file tx.psbt
Troubleshooting
Error: "--config flag is required"
All wallet commands now require explicit config path:
export BTC_WATCH_WALLET_CONF=./config/wallet/btc/watch.yaml
watch create deposit
watch --config ./config/wallet/btc/watch.yaml --coin btc create deposit
Error: "coin args is invalid"
Ensure --coin flag has valid value:
- Watch/Keygen:
btc, bch, eth, xrp, hyt
- Sign:
btc, bch only
Related
docs/getting-started/commands.md - Full command reference
docs/chains/btc/psbt/user-guide.md - PSBT workflow
docs/chains/btc/taproot/user-guide.md - Taproot usage