LinuxCommandLibrary

electrum

TLDR

Start Electrum GUI

$ electrum
copy
Create a new wallet
$ electrum create
copy
Get wallet balance
$ electrum getbalance
copy
List all addresses in the wallet
$ electrum listaddresses
copy
Generate a new receiving address
$ electrum createnewaddress
copy
Send Bitcoin to an address
$ electrum payto [address] [amount]
copy
Start the daemon for background operation
$ electrum daemon start
copy
Load a specific wallet in the daemon
$ electrum load_wallet -w [path/to/wallet]
copy

SYNOPSIS

electrum [options] [command] [args]
electrum daemon [start|stop|status]
electrum [-w wallet] command

DESCRIPTION

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.

PARAMETERS

-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

COMMANDS

create

Create a new wallet
restore
Restore wallet from seed
getbalance
Display wallet balance
listaddresses
List all wallet addresses
createnewaddress
Generate a new receiving address
getaddresshistory ADDRESS
Show transaction history for an address
history
Show wallet transaction history
payto ADDRESS AMOUNT
Create and send a transaction
broadcast TX
Broadcast a signed transaction
signmessage ADDRESS MESSAGE
Sign a message with an address
verifymessage ADDRESS SIGNATURE MESSAGE
Verify a signed message
commands
List all available commands

CAVEATS

Electrum connects to third-party servers that can see your addresses and transaction history, though they cannot access your funds. For maximum privacy, run your own Electrum server. The wallet file is encrypted by default but should be backed up securely. Hardware wallet integration requires additional packages.

HISTORY

Electrum was created by Thomas Voegtlin and first released in November 2011. It was one of the first lightweight Bitcoin wallets, pioneering the use of SPV (Simplified Payment Verification) with remote servers. The name comes from the Latin word for amber, chosen because amber produces static electricity when rubbed. Electrum introduced the concept of seed phrases for wallet backup, which became a standard across the cryptocurrency industry.

SEE ALSO

Copied to clipboard