版权声明:需要帮助可联系本人 QQ 422933159 https://blog.csdn.net/yaban8347/article/details/82183250
AChain (ACT) 部署文档
一.下载客户端
wget https://github.com/Achain-Dev/Achain_linux/releases/download/v2.0/Achain_ubuntu1604_v2.0.tar.gz
二.解压并启动
# 解压 tar xzvf Achain_ubuntu1604_v2.0.tar.gz
# 启动 ./Achain
(wallet closed) >>> exit
三.修改配置文件
vim ~/.ACT/config.json
# 原文rpc部分
"rpc": {
"enable": false,
"enable_cache": true,
"rpc_user": "",
"rpc_password": "",
"rpc_endpoint": "127.0.0.1:0",
"httpd_endpoint": "127.0.0.1:0",
"encrypted_rpc_endpoint": "127.0.0.1:0",
"encrypted_rpc_wif_key": "",
"htdocs": "./htdocs"
}
# 改为
"rpc": {
"enable": true,
"enable_cache": true,
"rpc_user": "achain", # RPC用户名
"rpc_password": "goodLuck2018", #RPC密码
"rpc_endpoint": "127.0.0.1:9090", # TCP rpc请求端口
"httpd_endpoint": "127.0.0.1:9091", #http RPC请求端口 √
"encrypted_rpc_endpoint": "127.0.0.1:9092",
"encrypted_rpc_wif_key": "",
"htdocs": "./htdocs"
}
四.启动服务
vim act_start.sh
nohup ./Achain --server --daemon &
五.两种RPC请求方式
https://github.com/Achain-Dev/Achain/wiki/Achain_RPC
# RPC文档:
中文:https://github.com/Achain-Dev/Achain/wiki/Achain_Dev_Guide
英文:https://www.achain.com/help-en/base-rpc.html
希望可以帮助到大家,谢谢!