Closed liaoyd closed 6 years ago
另外,进入主链的console,调用命令admin.startRPC()启动rpc后,调用子链rpc
curl -X POST --data '{"jsonrpc":"2.0","method":"eth_getLockedBalance","params":["0xb26dc7851e6d43f2edd4dfba91020e019001c566", "latest"],"id":1}' localhost:6969/pchain-child-test2 {"jsonrpc":"2.0","id":1,"result":"0x3f870857a3e0e3800000"}
返回的账户余额是账户在子链上的余额
This issue has been fixed. https://github.com/pchain-org/pchain/commit/4c2532200aede955a06bd0a2621eeaed611e79dc
1.发起创建子链的命令并使子链满足条件成功创建 2.用curl调用任意rpc 返回错误
curl -X POST --data '{"jsonrpc":"2.0","method":"chain_createChildChain","params":["0x3f71cfe301734b97edcb8426760f4ab1282a2105","pchain-child-test3", 2, 300000000000000000000000, 100,4000],"id":1}' localhost:6969/pchain
curl: (7) Failed to connect to localhost port 6969: Connection refused
子链和主链的rpc都无法访问 @fanbsb