安装数字钱包工具 monero-wallet-cli
apt install -y bzip2 wget
wget -O monero-linux-x64-v0.17.3.0.tar.bz2 https://downloads.getmonero.org/cli/linux64
tar xf monero-linux-x64-v0.17.3.0.tar.bz2
使用命令行建立门罗币钱包 ./monero-wallet-cli
root@debian:~/vip/monero-x86_64-linux-gnu-v0.17.3.0# ./monero-wallet-cli
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.3.0-release)
Logging to ./monero-wallet-cli.log
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): 钱包名
No wallet found with that name. Confirm creation of new wallet named: 钱包名
(Y/Yes/N/No): y
Generating new wallet...
Enter a new password for the wallet:
Confirm password:
List of available languages for your wallet's seed:
If your display freezes, exit blind with ^C, then run again with --use-english-language-names
0 : Deutsch
1 : English
2 : Español
3 : Français
4 : Italiano
5 : Nederlands
6 : Português
7 : русский язык
8 : 日本語
9 : 简体中文 (中国)
10 : Esperanto
11 : Lojban
Enter the number corresponding to the language of your choice: 9
Generated new wallet: 4AaTppMigsG8uyYFBiQgHK8bUPjAH86r1JUyYpaAgCT1YGx3KvR8oibixzJbpFuaNeEq79k3ZM5ssN7ChrFiR2AnQJGxQof
View key: 36846757049951cab72432cf63545616b85c507a016376037ae57cda08bece01
**********************************************************************
Your wallet has been generated!
To start synchronizing with the daemon, use the "refresh" command.
Use the "help" command to see a simplified list of available commands.
Use "help all" command to see the list of all available commands.
Use "help <command>" to see a command's documentation.
Always use the "exit" command when closing monero-wallet-cli to save
your current session's state. Otherwise, you might need to synchronize
your wallet again (your wallet keys are NOT at risk in any case).
NOTE: the following 25 words can be used to recover access to your wallet. Write them down and store them somewhere safe and secure. Please do not store them in your email or on file storage services outside of your immediate control.
宽 口 口 口 口 口 口 判
决 口 口 口 口 口 口 包
持 口 口 口 口 口 口 口 争
**********************************************************************
root@debian:~/vip/monero-x86_64-linux-gnu-v0.17.3.0# ./monero-wallet-cli --wallet-file 钱包名
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.3.0-release)
Logging to ./monero-wallet-cli.log
Wallet password:
Opened wallet: 4AaTppMigsG8uyYFBiQgHK8bUPjAH86r1JUyYpaAgCT1YGx3KvR8oibixzJbpFuaNeEq79k3ZM5ssN7ChrFiR2AnQJGxQof
**********************************************************************
Use the "help" command to see a simplified list of available commands.
Use "help all" to see the list of all available commands.
Use "help <command>" to see a command's documentation.
**********************************************************************
Error: wallet failed to connect to daemon: http://localhost:18081. Daemon either is not started or wrong port was passed. Please make sure daemon is running or change the daemon address using the 'set_daemon' command.
Background refresh thread started
数字钱包命令行基本命令
[wallet 4AaTpp (no daemon)]: help
Important commands:
"welcome" - Show welcome message. 显示欢迎信息。
"help all" - Show the list of all available commands. 显示所有可用命令的列表。
"help <command>" - Show a command's documentation. 显示命令的文档。
"apropos <keyword>" - Show commands related to a keyword. 显示与关键字相关的命令。
"wallet_info" - Show wallet main address and other info. 显示钱包主地址和其他信息。
"balance" - Show balance. “余额” - 显示余额。
"address all" - Show all addresses. 显示所有地址。
"address new" - Create new subaddress. 创建新的子地址。
"transfer <address> <amount>" - Send XMR to an address. 将 XMR 发送到一个地址。
"show_transfers [in|out|pending|failed|pool]" - Show transactions. 显示交易。
"sweep_all <address>" - Send whole balance to another wallet. 将全部余额发送到另一个钱包。
"seed" - Show secret 25 words that can be used to recover this wallet. “种子” - 显示可用于恢复此钱包的 25 个秘密词。
"refresh" - Synchronize wallet with the Monero network. “刷新” - 将钱包与 Monero 网络同步。
"status" - Check current status of wallet. “状态” - 检查钱包的当前状态。
"version" - Check software version.
"exit" - Exit wallet.
"donate <amount>" - Donate XMR to the development team.
显示钱包信息和余额
[wallet 4AaTpp (no daemon)]: wallet_info
Filename: 钱包名
Description: <Not set>
Address: 4AaTppMigsG8uyYFBiQgHK8bUPjAH86r1JUyYpaAgCT1YGx3KvR8oibixzJbpFuaNeEq79k3ZM5ssN7ChrFiR2AnQJGxQof
Type: Normal
Network type: Mainnet
[wallet 4AaTpp (no daemon)]: address all
0 4AaTppMigsG8uyYFBiQgHK8bUPjAH86r1JUyYpaAgCT1YGx3KvR8oibixzJbpFuaNeEq79k3ZM5ssN7ChrFiR2AnQJGxQof Primary address
[wallet 4AaTpp (no daemon)]: balance
Currently selected account: [0] Primary account
Tag: (No tag assigned)
Balance: 0.000000000000, unlocked balance: 0.000000000000
使用轻钱包,从远程节点同步区块连 ,会扫描区块链并代替您查找到您帐户的交易信息
set_daemon node.supportxmr.com:18081 trusted
设置远程节点后,再 refresh
刷新set_daemon node.supportxmr.com:18081 trusted
[wallet 4AaTpp (no daemon)]: refresh
Error: wallet failed to connect to daemon: http://localhost:18081. Daemon either is not started or wrong port was passed. Please make sure daemon is running or change the daemon address using the 'set_daemon' command.
[wallet 4AaTpp (no daemon)]: set_daemon
Error: usage: set_daemon <host>[:<port>] [trusted|untrusted|this-is-probably-a-spy-node]
[wallet 4AaTpp (no daemon)]: set_daemon node.supportxmr.com:18081 trusted
Warning: connecting to a non-local daemon without SSL, passive adversaries will be able to spy on you.
Daemon set to node.supportxmr.com:18081, trusted
[wallet 4AaTpp (out of sync)]: refresh
Starting refresh...
重新登陆钱包和使用seed恢复钱包 命令行参数
./monero-wallet-cli --help
--trusted-daemon Enable commands which rely on a trusted daemon 启用依赖于受信任守护进程的命令
--wallet-file arg Use wallet <arg> 使用钱包 <arg>
--generate-new-wallet arg Generate new wallet and save it to <arg> 生成新钱包并保存到 <arg>
--restore-from-seed alias for --restore-deterministic-wallet 用于恢复确定性钱包
显示余额,付款转账和查看交易记录
balance # “余额” - 显示余额。
# "transfer <address> <amount>" - Send XMR to an address. 将 XMR 发送到一个地址。 以下发送 RMB 1元到一个钱包地址
transfer 44sLMB4XqJwh2CLraqMrnXEVp5nVoS26kVDtfmGMkXTx7SYBgo24HfpJjyAbUXzRiHcKtVPd3Lp94fsW5G2GNWFo3kHUb6y 0.00071
show_transfers # 查看交易记录
[wallet 49DZjJ]: balance
Currently selected account: [0] Primary account
Tag: (No tag assigned)
Balance: 0.010927720000, unlocked balance: 0.010927720000
[wallet 49DZjJ (out of sync)]: transfer 44sLMB4XqJwh2CLraqMrnXEVp5nVoS26kVDtfmGMkXTx7SYBgo24HfpJjyAbUXzRiHcKtVPd3Lp94fsW5G2GNWFo3kHUb6y 0.00071
Wallet password:
Transaction 1/1:
Spending from address index 0
Sending 0.000710000000. The transaction fee is 0.000007210000
Is this okay? (Y/Yes/N/No): y
Transaction successfully submitted, transaction <e5b6e3333780593c24699339227722f4dfc641948a0784729a33837cf5258e5c>
You can check its status by using the `show_transfers` command.
[wallet 49DZjJ (out of sync)]: show_transfers
2529461 in unlocked 2022-01-04 00:42:06 0.010927720000 e3e5612b6886a6fdc941625cf59f4cf2ded4cca4796bec483ba0eb424fa87283 0000000000000000 0.000000000000 49DZjJ:0.010927720000 0 -
pending out - 2022-01-05 14:30:24 0.000710000000 e5b6e3333780593c24699339227722f4dfc641948a0784729a33837cf5258e5c 0000000000000000 0.000007210000 44sLMB4XqJwh2CLraqMrnXEVp5nVoS26kVDtfmGMkXTx7SYBgo24HfpJjyAbUXzRiHcKtVPd3Lp94fsW5G2GNWFo3kHUb6y:0.000710000000 0 -