官网文档:https://docs.hecochain.com/#/dev/install
1.安装GOGO下载地址 https://golang.org/doc/install
wget -c https://golang.org/dl/go1.16.3.linux-amd64.tar.gz -O - | sudo tar -xz -C /usr/local
2.配置GO的环境变量###########GO########## export GOROOT=/usr/local/go export GOPATH=/home/go/goProject export GOBIN=$GOPATH/bin export PATH=$PATH:$GOROOT/bin export PATH=$PATH:$GOPATH/bin export GOPROXY=https://goproxy.io3.下载源代码
git clone https://github.com/HuobiGroup/huobi-eco-chain.git
4.cd huobi-eco-chain 5.编译 make geth(编译完成后,生成的二进制文件在build/bin目录下,运行,通过./build/bin/geth --help查看所有的option选项,根据情况自行设置相关配置参数。可参考Command-line Options)
6.运行nohup ./*geth --datadir=数据目录 --syncmode fast --cache 4096 --rpc --rpcaddr 0.0.0.0 --rpcport 端口 --rpcapi eth,net,web3 &
程序启动默认接入mainnet,如需接入公共测试网,可添加option --testnet。
RPC方式与以太坊主链基本一致 有略微区别
Heco手续费网址 https://tc.hecochain.com/price/prediction



