我很难得到一个简单的耳语(嘘)的例子运行。我正在使用以下版本: geth 1.9.24-稳定-cc05b050 web3 6.14.5
我正在使用以下命令运行geth:
geth --shh --rpc我开始用以下linex进行编码:
var Web3 = require('web3');
var web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545"));
var shh = web3.shh;
(async function main() {
var keyPair = await shh.newKeyPair();
})();然后,我得到以下错误:
Error: Returned error: the method shh_newKeyPair does not exist/is not available我猜shh命令不受节点(geth)的支持。
有人能指导如何使用上面的版本运行的Whisper获得一个简单的消息传递示例吗?谢谢你的支持。
发布于 2021-02-26 10:09:17
v1.9.24不再有窃窃私语,它从1.9.21开始就被丢弃了。您应该使用以前的版本。(类似于1.9.17)
https://ethereum.stackexchange.com/questions/91139
复制相似问题