Linux command
electrum 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start Electrum GUI
electrum
Create a new wallet
electrum create
Get wallet balance
electrum getbalance
List all addresses
electrum listaddresses
Generate a new receiving address
electrum createnewaddress
Send Bitcoin
electrum payto [address] [amount]
Start the daemon
electrum daemon start
Load a specific wallet
electrum load_wallet -w [path/to/wallet]
说明
electrum is a lightweight Bitcoin wallet that connects to remote servers instead of downloading the entire blockchain. It supports both a graphical interface and command-line operations, making it suitable for desktop use and scripted automation. The wallet uses hierarchical deterministic (HD) key generation from a mnemonic seed phrase, allowing full wallet recovery from the seed alone. It supports multi-signature wallets, hardware wallet integration (Trezor, Ledger), and watch-only wallets. For command-line operations, the daemon can run in the background handling network communication while CLI commands interact with it. Some commands work offline without the daemon using the -o flag. The special argument ! means "maximum amount available" and - reads from stdin.
参数
- -w, --wallet _PATH_
- Use wallet from specified path
- -o, --offline
- Run in offline mode without network access
- -g, --gui _GUI_
- Select user interface (qt, text)
- -s, --server _HOST:PORT:PROTOCOL_
- Set server address
- -p, --proxy _TYPE:HOST:PORT_
- Set proxy server
- -v, --verbose
- Show debugging information
- -P, --portable
- Use portable wallet mode
- -L, --lang _LANGUAGE_
- Set default language for GUI
- --testnet
- Use Bitcoin testnet
- --mainnet
- Use Bitcoin mainnet (default)
- -a, --all
- Show all addresses
- -h, --help
- Show help message and exit
- --version
- Show program version
FAQ
What is the electrum command used for?
electrum is a lightweight Bitcoin wallet that connects to remote servers instead of downloading the entire blockchain. It supports both a graphical interface and command-line operations, making it suitable for desktop use and scripted automation. The wallet uses hierarchical deterministic (HD) key generation from a mnemonic seed phrase, allowing full wallet recovery from the seed alone. It supports multi-signature wallets, hardware wallet integration (Trezor, Ledger), and watch-only wallets. For command-line operations, the daemon can run in the background handling network communication while CLI commands interact with it. Some commands work offline without the daemon using the -o flag. The special argument ! means "maximum amount available" and - reads from stdin.
How do I run a basic electrum example?
Run `electrum` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -w, --wallet _PATH_ do in electrum?
Use wallet from specified path