方法 miner_start 未实现
method miner_start not implemented
我正在尝试通过节点的请求库调用 RPC 请求,在 web3 Ethereum 中启动一个矿工。
我遇到 "miner_start method not implemented" 错误。我错过了什么?
出于安全原因,"miner" API 默认情况下未通过 JSON RPC 启用。您可以使用 --rpcapi
选项启用它:
geth --rpc --rpcapi "eth,miner,net,web3"
所有可用模块是:admin、eth、debug、miner、net、shh、txpool、personal、web3。
我正在尝试通过节点的请求库调用 RPC 请求,在 web3 Ethereum 中启动一个矿工。
我遇到 "miner_start method not implemented" 错误。我错过了什么?
出于安全原因,"miner" API 默认情况下未通过 JSON RPC 启用。您可以使用 --rpcapi
选项启用它:
geth --rpc --rpcapi "eth,miner,net,web3"
所有可用模块是:admin、eth、debug、miner、net、shh、txpool、personal、web3。