![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
以太坊
虚竹777777
一粟,不粟
展开
-
web3的shh使用
web3-shh包用来使用whisper协议进行广播发送。我在node-js开发中想调用ssh生成一对公钥和私钥,但是报了以下错误:web3.js: Error: The method shh_newSymKey does not exist/is not available on Web3.js不管怎么调,方法总是调用不了,百度以后发现没有解答,然后果断Google,终于找到答案,...原创 2020-04-29 15:45:59 · 672 阅读 · 0 评论 -
TypeError: web3.isConnected is not a function的解决方法
/home/yifei/SoftWareShare/routes/index.js:16var connected = web3.isConnected(); ^TypeError: web3.isConnected is not a function 昨晚遇到这个问题搞了我一晚上,我使用nodejs和express搭建的服务器,之前单独用n...原创 2019-01-22 11:02:59 · 3399 阅读 · 0 评论 -
solidity address类型转账函数transfer报错
在以太坊开发中,使用remix作为智能合约solidity的ide,在写转账功能时,发现address类型转账函数transfer报错,只能msg.sender发生转账。经过查资料发现,我所查看的开发文档是v0.4.23,而我所用的版本是0.5.2.下面是两个版本文档对比。V0.4.23v0.5.7在0.5.几版本以后,要调用send或者transfer函数,都要定义addre...原创 2019-04-23 18:57:46 · 2155 阅读 · 2 评论