565 tutoriels disponibles
Chercher un tutoriel
Bienvenue
sur Shareannonce
 
Electrum CLI commands on ubuntu
Ecrit par: Shareannonce
Date création:  04-06-2020
Nombre de vues:  3808
Catégorie:  crypto-monnaie
Note: 
 
   Tutoriel N° 2ed

Electrum CLI commands on ubuntu



You need install electrum before using this CLI:

https://www.shareannonce.com/david/tutorial/2d7


INSTALL jq TO READ JSON OUTPUT

sudo apt-get install jq


ELECTRUM STATUS

electrum daemon status
electrum daemon start
electrum daemon status
electrum daemon stop

Some CLI need to have electrum with a start status and another CLI need a stop status


CREATE WALLET

only if you have any wallet created yet
:
electrum create

==> this command create a wallet with default_wallet name by default

else

electrum create -w <PATH/name>
electrum create -w ~/.electrum/wallets/new

==> this command create a wallet with new name

return:

{
"msg": "Please keep your seed in a safe place; if you lose it, you will not be able to restore your wallet.",
"path": "/home/xxx/.electrum/wallets/default_wallet",
"seed": "word1 word2 word3 word4 word5 word6 word7 word8 word9 word10 word11 word12"
}



PATH WALLET

~/.electrum/wallets/


RESTORE WALLET WITH SEED or PUBLIC MASTER KEY

electrum restore "word1 word2 word3 word4 word5 word6 word7 word8 word9 word10 word11 word12"

or

electrum restore "your_public_master_key"


GET HELP

electrum -h
electrum <command> -h
electrum payto -h


GET ADRESSES LIST PUBLIC AND PRIVATE

electrum listaddresses
electrum listaddresses | electrum getprivatekeys -


GET YOUR MASTER PUBLIC KEY

electrum getmpk


CREATE NEW ADDRESS

electrum createnewaddress

return:
1XXXXXXXXXXXXXXXXXXXXXXXXXXXX


GET PRIVATE KEY OF A PUBLIC KEY

electrum getprivatekeys 1XXXXXXXXXXXXXXXXXXXXXXXXXXXX

return:

Exposing a single private key can compromise your entire wallet!
In particular, DO NOT use 'redeem private key' services proposed by third parties.
p2pkh: your_private_key



GET YOUR SEED

electrum getseed

return:

word1 word2 word3 word4 word5 word6 word7 word8 word9 word10 word11 word12


CREATE SEED WITHOUT WALLET FOR ELECTRUM PROTOCOL BIP

electrum make_seed

return:

word1 word2 word3 word4 word5 word6 word7 word8 word9 word10 word11 word12


MORE CLI

electrum listaddresses
electrum -w <path/wallet_name> getbalance
electrum getbalance
electrum listunspent
electrum history
electrum getfeerate



ressource:
https://electrum.readthedocs.io/en/latest/cmdline.html


 
 
   Autres tutoriels de la même catégorie >
 
ShareAnnonce version 2.0 Tous droits reserves. | Condition d'utilisation | Contact