一、首先从网上下载代码、导入gpg公钥并验证源码签名,命令如下:
wget https://raw.githubusercontent.com/spesmilo/electrum/master/pubkeys/ThomasV.ascgpg --import ThomasV.ascwget https://download.electrum.org/3.1.3/Electrum-3.1.3.tar.gz.ascwget https://download.electrum.org/3.1.3/Electrum-3.1.3.tar.gzgpg --verify Electrum-3.1.3.tar.gz.asc Electrum-3.1.3.tar.gz
二、对代码进行安装,命令如下:
sudo apt-get install python3-setuptools python3-pyqt5 python3-pipsudo pip3 install Electrum-3.1.3.tar.gz
三、安装完毕之后,我们可以在终端中输入如下命令来查看帮助:
electrum -h
return的信息如下:
guiRun GUI (default) ---运行GUIdaemon(start) Run Daemon ---运行守护程序addrequestCreate a payment request, using the first unused address of the wallet ---使用一个未使用过的地址创建一个付款请求addtransactionAdd a transaction to the wallet history ---向钱包历史中添加一条交易broadcastBroadcast a transaction to the network ---向网络广播一条交易clearrequestsRemove all payment requests ---移除全部的付款请求commandsList of commands ---命令列表createCreate a new wallet ---创建一个新的钱包createmultisigCreate multisig address ---创建多重签名的地址createnewaddressCreate a new receiving address, beyond the gap limit of the wallet ---创建一个新的接收地址,超出了钱包的XX限制decryptDecrypt a message encrypted with a public key ---解密使用公钥加密的信息deserializeDeserialize a serialized transaction ---反序列化一个序列化的交易dumpprivkeysDeprecated ---已经废弃encrypt Encrypt a message with a public key ---使用公钥加密一条信息freezeFreeze address ---冻结地址getaddressbalanceReturn the balance of any address ---返回任何地址的余额getaddresshistoryReturn the transaction history of any address ---返回任何地址的交易历史getaddressunspentReturns the UTXO list of any address ---返回任何地址的UTXO列表getaliasRetrieve alias ---检索别名getbalanceReturn the balance of your wallet ---返回钱包的余额getconfigReturn a configuration variable ---返回配置变量getfeerateReturn current optimal fee rate per kilobyte, according to config settings (static/dynamic) ---根据配置信息,返回当前最优费率getmasterprivateGet master private key ---获取master私钥getmerkleGet Merkle branch of a transaction included in a block ---获取包含在一个区块中的一笔交易的默克尔树getmpkGet master public key ---获取master公钥getprivatekeysGet private keys of addresses ---获取地址的私钥getpubkeysReturn the public keys for a wallet address ---返回一个钱包地址的公钥getrequestReturn a payment request ---返回一个付款请求getseedGet seed phrase ---获取种子getserversReturn the list of available servers ---返回可用的服务器列表gettransactionRetrieve a transaction ---检索一笔交易getunusedaddressReturns the first unused address of the wallet, or None if all addresses are used ---返回钱包中第一个未使用的地址,如果都在使用则返回空helphistoryWallet history ---钱包历史importprivkeyImport a private key ---导入私钥is_synchronizedreturn wallet synchronization status ---返回钱包的同步状态ismineCheck if address is in wallet ---检查地址是否在钱包中listaddressesList wallet addresses ---钱包中的地址列表listcontactsShow your list of contacts ---显示联系人列表listrequestsList the payment requests you made ---发出的付款请求列表listunspentList unspent outputs ---未使用的输出列表make_seedCreate a seed ---创建种子notifyWatch an address ---观察一个地址passwordChange wallet password ---更改钱包密码paytoCreate a transaction ---创建一笔交易paytomanyCreate a multi-output transaction ---创建一笔多输出交易restoreRestore a wallet from text ---从文本中还原恢复钱包rmrequestRemove a payment request ---移除一个付款请求searchcontactsSearch through contacts, return matching entries ---搜索联系人,返回匹配的条目serializeCreate a transaction from json inputs ---从JSON输入创建一笔交易setconfigSet a configuration variable ---设置配置变量setlabelAssign a label to an item ---为一个项目分配标签signmessageSign a message with a key ---使用key给一条信息签名signrequestSign payment request with an OpenAlias ---使用OpenAlias给付款请求签名signtransactionSign a transaction ---为一笔交易签名sweepSweep private keys ---清除私钥unfreezeUnfreeze address ---解除冻结地址validateaddressCheck that an address is valid ---检验一个地址是否有效verifymessageVerify a signature ---验证签名versionReturn the version of Electrum ---返回Electrum 的版本
optional arguments:
-
-h, --helpshow this help message and exit ---显示帮助信息并退出
global options:
-v, --verboseShow debugging information ---显示调试信息-D ELECTRUM_PATH, --dir ELECTRUM_PATHelectrum directory ---Electrum目录-P, --portableUse local 'electrum_data' directory ---Electrum 的本地目录-w WALLET_PATH, --wallet WALLET_PATHwallet path ---钱包路径--testnetUse Testnet ---使用测试网络--regtestUse Regtest ---使用本地测试网络Run 'electrum help <command>' to see the help for a command