Linux下的Swarm测试节点部署教程

后台运行bee

screen -S bee

启动bee

bee start \
--verbosity 5 \
--swap-endpoint https://goerli.infura.io/v3/14a4d92bf5884b79b8d9d066eff829d2 \
--debug-api-addr :1635 \
--debug-api-enable \
--clef-signer-enable \
--clef-signer-endpoint  /var/lib/bee-clef/clef.ipc

第一次输入需要输入2遍密码

后台运行bee

程序正常运行后,快速同时按下ctrl+a、d,跳出新页面即表示后台运行成功。

关闭窗口

关闭窗口即为退出当前服务器。(成功后台运行clef和bee后退出服务器程序也在跑,放心退出)

重新连入云服务器

双击节点,屏幕显示“连接成功”即表示成功连入。

查询状态

Ubuntu安装jq

apt-get install jq

CentOS安装jq

yum install jq

安装curl,可以用如下命令安装

sudo apt install curl

查看有无支票

curl localhost:1635/chequebook/cheque | jq

查看当前连接到多少个节点

curl -s http://localhost:1635/peers | jq '.peers | length'

测试连通

curl http://localhost:1633

检查网络拓扑

curl -X GET http://localhost:1635/topology | jq

查询当前节点余额

curl localhost:1635/chequebook/balance | jq

检查对等余额

curl localhost:1635/balances | jq

查看节点地址

curl http://localhost:1635/addresses

查看账本合约地址

curl http://localhost:1635/chequebook/address

原创文章,作者:朋远方,如若转载,请注明出处:https://caovan.com/linuxxiadeswarmceshijiedianbushujiaocheng/.html

Like (0)
Donate 微信扫一扫 微信扫一扫
朋远方的头像朋远方
Previous 2021年3月21日 上午11:05
Next 2021年6月12日 下午1:36

相关推荐

发表回复

Please Login to Comment