Command-Line Cold Storage
This page will show you how to sign a transaction with an offline Electrum wallet, using the Command line.
Create an unsigned transaction
With your online (watching-only) wallet, create an unsigned transaction:
The unsigned transaction is stored in a file named ‘unsigned.txn’. Note that the –unsigned option is not needed if you use a watching-only wallet.
You may view it using:
Sign the transaction
The serialization format of Electrum contains the master public key needed and key derivation, used by the offline wallet to sign the transaction.
Thus we only need to pass the serialized transaction to the offline wallet:
The command will ask for your password, and save the signed transaction in ‘signed.txn’
Broadcast the transaction
Send your transaction to the Bitcoin network, using broadcast:
If successful, the command will return the ID of the transaction.
Last updated