admin管理员组

文章数量:1648348

The method personal_newAccount does not exist/is not available

进行ETC RCP API调用的时候出现以下问题:

{
    "jsonrpc": "2.0",
    "id": 1,
    "error": {
        "code": -32601,
        "message": "The method personal_newAccount does not exist/is not available"
    }
}

原因以及解决办法请参考如下链接:

https://github/ethereum/go-ethereum/issues/2723

https://github/ethereum/web3.js/issues/494

我的做法就是参考第二个链接,以下面的指令启动geth:

geth --rpcapi="db,eth,net,web3,personal,web3"

启动之后,连接上geth并打开RPC访问:

之后直接postman调用或者代码里通过web3j调用都是OK的:

这一点想必ETH和ETC是一样的。

本文标签: methodpersonalnewAccountexist