ncorrect Usage. flag provided but not defined: -rpc

最近在写毕业设计的时候发现必须要有一些操作必须要到链上去,于是暂时准备先用python的web3库,但是需要先开启geth节点,网上找了半天方法,发现都是错误的,总是报错
 

(base) ➜  web3 ./geth --rpc --rpcaddr "localhost" --rpcport "8545" --syncmode "light"
Incorrect Usage. flag provided but not defined: -rpc

后来仔细看了下文章发布日期,大都是2018年左右的,都三年过去了,geth肯定更新了,盯了下geth的help,发现的确是更新了,于是去google了一下,立马找到了解决方案

参考链接:JSON-RPC Server | Go Ethereum


 

./geth --http --http.api personal,eth,net,web3

猜你喜欢

转载自blog.csdn.net/claysystem/article/details/121133081
RPC