ubuntu22.04
首先在运行daemon,详细安装运行教程可参考:The Monero daemon (monerod)
cpp
./monerod

Wallet CLI
run
cpp
./monero-wallet-cli
如果还没有钱包就根据提示创建钱包即可
输入密码
查询余额
cpp
balance

查询种子
cpp
seed

其他可执行命令操作:
Wallet PRC
首先运行成功
cpp
./monerod
查看端口号是否被占用
cpp
netstat -tupln

可以看到18083没有被占用
这里我的钱包名称是MyWallet,自行将下面命令改为自己钱包名称和端口号
cpp
./monero-wallet-rpc --rpc-bind-port 18083 --disable-rpc-login --log-level 2 --wallet-file MyWallet --prompt-for-password
然后输入密码
查询余额get_balance
bash
curl http://127.0.0.1:18083/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"get_balance","params":{"account_index":0,"address_indices":[0,1]}}' -H 'Content-Type: application/json'

创建账户
bash
curl http://localhost:18083/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"create_account","params":{"label":"Secondary account"}}' -H 'Content-Type: application/json'

其他命令操作可参考官方文档