715  
查询码:00000130
搭建xdai侧链节点
作者: 文艺范儿 于 2021年07月31日 发布在分类 / 挖矿 下,并于 2021年07月31日 编辑
xdai

官网搭建文档:https://www.xdaichain.com/for-developers/install-xdai-client/parity
RPC接口文档:https://openethereum.github.io/JSONRPC-eth-module#eth_blocknumber

1.下载安装包

mkdir xdai-data 
wget https://github.com/openethereum/openethereum/releases/download/v3.2.5/openethereum-linux-v3.2.5.zip
unzip openethereum-linux-v3.2.5.zip
chmod +x ./*

2.启动xdai节点

nohup ./openethereum --chain xdai --port=30303 --jsonrpc-port=8545 --jsonrpc-cors=all --jsonrpc-interface=all --jsonrpc-hosts=all --jsonrpc-apis=web3,eth,net,parity --ws-interface=all --ws-apis=web3,eth,net,parity,pubsub --ws-origins=all --ws-hosts=all --ws-max-connections=10 --max-peers=100 --base-path=./xdai-data  >>  ./xdai.log 2>&1 &

3.查看同步状态

可在nohup日志里看或者使用curl访问web3接口查询或使用geth客户端查询



 推荐知识

 历史版本

修改日期 修改人 备注
2021-07-31 09:50:29[当前版本] 文艺范儿 格式调整
2021-07-31 09:47:47 文艺范儿 格式调整
2021-07-31 09:17:08 文艺范儿 创建版本

  目录
    文艺知识分享平台 -V 4.9.5 -wcp
    京公网安备100012199188号 京ICP备2021030911号