Anemone95 / anemone95.github.io

http://anemone.top/
2 stars 1 forks source link

Geth搭建公有节点or私有链节点 | Anemone's Blog #33

Open Anemone95 opened 5 years ago

Anemone95 commented 5 years ago

http://anemone.top/%E5%8C%BA%E5%9D%97%E9%93%BE-Geth%E6%90%AD%E5%BB%BA%E5%85%AC%E6%9C%89%E8%8A%82%E7%82%B9or%E7%A7%81%E6%9C%89%E9%93%BE/

Geth搭建公有节点Geth搭建公有节点主要是因为实验室有获取区块数据这一需求,因此这里记录一下如何建立一个公有链节点并暴露其json-rpc供其他人调用: 1geth --syncmode=light --datadir "./public_chain" --rpc --rpcaddr "127.0.0.1" --rpcport "8545" –syncmode=light:仅获取当前状态