sudo add-apt-repository ppa:adshares/releases -y
sudo apt-get update
sudo apt-get install ads ads-tools
sudo apt-get install python-pip
pip install flask flask_jsonrpc waitress
port=6511
host=n01.e11.click
address=申请的ADS地址
secret=私钥
tmux new -s ads
#两个窗口操作 然后不要exit直接在crt等软件把窗口x掉
/usr/bin/ads
tmux a -t ads
/usr/bin/ads-json-rpc --host 127.0.0.1 --port rpc端口 &
curl -X POST 127.0.0.1:rpc端口 \
-H "Content-Type: application/json" \
-d @- << EOF
{
"jsonrpc": "2.0",
"id": "1",
"method": "get_log",
"params": {
"address":"钱包地址",
"from":0
}
}
EOF
echo '{"run":"get_account","address":"ADS地址"}' | ads
(echo '{"run":"get_me"}'; \
echo '{"run":"send_one",\
"address":"收款地址",\
"amount":金额,\
"message":"标签"}') | ads