栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

linux 门罗cli钱包操作记录

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

linux 门罗cli钱包操作记录

1, 进入monero_cli钱包目录

   

[root@localhost creo]# cd /usr/local/soft/monero/monero/
[root@localhost monero]# ls
daemon.sh                             monero-blockchain-prune-known-spent-data
LICENSE                               monero-blockchain-stats
mond                                  monero-blockchain-usage
mond.keys                             monerod
monero-blockchain-ancestry            monero-gen-ssl-cert
monero-blockchain-depth               monero-gen-trusted-multisig
monero-blockchain-export              monero.sh
monero-blockchain-import              monero-wallet-cli
monero-blockchain-mark-spent-outputs  monero-wallet-cli.log
monero-blockchain-prune               monero-wallet-rpc
[root@localhost monero]# 

2, 先启动 monerod

[root@localhost monero]# ls
daemon.sh                             monero-blockchain-prune-known-spent-data
LICENSE                               monero-blockchain-stats
mond                                  monero-blockchain-usage
mond.keys                             monerod
monero-blockchain-ancestry            monero-gen-ssl-cert
monero-blockchain-depth               monero-gen-trusted-multisig
monero-blockchain-export              monero.sh
monero-blockchain-import              monero-wallet-cli
monero-blockchain-mark-spent-outputs  monero-wallet-cli.log
monero-blockchain-prune               monero-wallet-rpc
[root@localhost monero]# ./monerod --detach
2021-12-08 11:59:48.061	I Monero 'Oxygen Orion' (v0.17.2.3-release)
Forking to background...
[root@localhost monero]# 

3, 再启动 monero-wallet-cli,参数为指定远程节点,要不然要同步整个区块,占用空间太大。为输入方便,写成了脚本

PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
monero_work=/usr/local/soft/monero/monero/
export monero_work
cd "$monero_work"
./monero-wallet-cli --daemon-address node.supportxmr.com:18081

保存为.sh文件后执行

4. 这里是要求输入钱包名字,如果之前命名过,就输入之前命名的。如果是第一次打开,可随便命名一个,后续还会让你输入助记词,选择恢复的区块高度,这里建议按钱包的注册时间来恢复区块高度,要不然有些交易记录是恢复不了的,造成余额显示不正确。

[root@localhost sbin]# ./monero.sh 
This is the command line monero wallet. It needs to connect to a monero
daemon to work correctly.
WARNING: Do not reuse your Monero keys on another fork, UNLESS this fork has key reuse mitigations built in. Doing so will harm your privacy.

Monero 'Oxygen Orion' (v0.17.2.3-release)
Logging to ./monero-wallet-cli.log
WARNING: You may not have a high enough lockable memory limit, see ulimit -l
Specify wallet file name (e.g., MyWallet). If the wallet doesn't exist, it will be created.
Wallet file name (or Ctrl-C to quit): 

5. 进入以后等待区块同步完成,就进入到了cli的shell

**********************************************************************
Warning: using an untrusted daemon at node.supportxmr.com:18081
Using a third party daemon can be detrimental to your security and privacy
Using your own without SSL exposes your RPC traffic to monitoring
You are strongly encouraged to connect to the Monero network using your own daemon
If you or someone you trust are operating this daemon, you can use --trusted-daemon
Using an untrusted daemon, skipping background mining check
Starting refresh...
Refresh done, blocks received: 3                                
Untagged accounts:
          Account               Balance      Unlocked balance                 Label

[wallet 47okZ6]: help all

输入help all 查看帮助,里面有付款命令,也能查询交易

后面再进一步研究研究

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/643253.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号