LinuxCommandLibrary

electrum

Manage and use Bitcoin wallets

TLDR

Create a new wallet

$ electrum [[-w|--wallet]] [path/to/new_wallet.dat] create
copy

Restore an existing wallet from seed offline
$ electrum [[-w|--wallet]] [path/to/recovery_wallet.dat] restore [[-o|--offline]]
copy

Create a signed transaction offline
$ electrum mktx [recipient] [amount] [[-f|--fee]] 0.0000001 [[-F|--from-addr]] [from] [[-o|--offline]]
copy

Display all wallet receiving addresses
$ electrum listaddresses -a
copy

Sign a message
$ electrum signmessage [address] [message]
copy

Verify a message
$ electrum verifymessage [address] [signature] [message]
copy

Connect only to a specific electrum-server instance
$ electrum [[-p|--proxy]] socks5:[127.0.0.1]:9050 [[-s|--server]] [56ckl5obj37gypcu.onion]:50001:t [[-1|--oneserver]]
copy

SYNOPSIS

electrum [options] [command] [arguments...]

PARAMETERS

--testnet
    Use the testnet network.

--regtest
    Use the regtest network.

--datadir
    Specify the data directory.

--offline
    Start in offline mode.

--gui
    Start the graphical user interface.

create
    Create a new wallet.

restore
    Restore a wallet from a seed phrase.

address
    Show the wallet's receiving address.

getbalance
    Show the wallet balance.

payto


    Send Bitcoin to the specified address.

gettransaction
    Show transaction details.

help
    Display help information.

DESCRIPTION

The `electrum` command provides a powerful and versatile command-line interface (CLI) for managing Bitcoin wallets using the Electrum wallet software. Electrum is a lightweight Bitcoin wallet, meaning it doesn't download the entire blockchain, instead relying on servers to verify transactions. This makes it significantly faster and more resource-efficient than full node wallets. The `electrum` command allows users to create, restore, and manage wallets; send and receive Bitcoin; view transaction history; sign and verify messages; and interact with various Electrum features directly from the terminal. It's geared towards advanced users who prefer command-line tools for managing their Bitcoin. It supports multiple wallet types including standard, multisig, and hardware wallets. Using scripts it's possible to automate common wallet actions. This command is the front-end to interact with a running electrum server or with public electrum servers.

CAVEATS

The `electrum` command requires Electrum to be installed and configured properly. Security relies on the security of the machine where Electrum is installed. It is advisable to use the tool together with hardware wallets.

SECURITY CONSIDERATIONS

Important: Always secure your Electrum wallet with a strong password and store your seed phrase in a safe place. Consider using hardware wallets for enhanced security. Treat the electrum command with the same level of caution as you would with any other sensitive financial tool.
Never share your seed phrase with anyone.

WALLET TYPES

Electrum supports different wallet types, including standard wallets (single-signature), multi-signature wallets (requiring multiple keys to authorize transactions), and hardware wallets (which store private keys on a separate device).
The best wallet type depends on the desired level of security and the user's risk tolerance.

HISTORY

Electrum was created in 2011 by Thomas Voegtlin. It was one of the first lightweight Bitcoin wallets. It was developed to overcome limitations of full node wallets. Over time, it added features such as hardware wallet support and multiple wallet types, becoming a popular choice for experienced Bitcoin users seeking a balance between security and resource efficiency. It is continuously improved with new features and security updates.

SEE ALSO

bitcoin-cli(1), gpg(1)

Copied to clipboard