![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
we3js
JDBaby
这个作者很懒,什么都没留下…
展开
-
利用express+ganache写一个带智能合约的dapp
1,编写合约pragma solidity >=0.4.22;contract Counter{ uint256 count; constructor() public{ count = 1; } function skipCount(uint256 skip) public{ count += skip; } function allCount() public view returns(uint256){原创 2021-10-19 15:46:15 · 11175 阅读 · 1 评论 -
利用express和ganache编写一个简单的dapp
1,环境准备首先创建一个course目录然后在course目录下安装如下内容1.1 安装expresssudo npm install express -g1.2 安装web3.jssudo npm install web3 -save2,创建工程express -e MyDappcd MyDappnpm installnpm start3,内容修改3.1 首先修改routes 文件下的index.jscd routes/vim index.jsvar express原创 2021-10-18 15:11:57 · 186 阅读 · 0 评论 -
windows下安装bash bash的目录位置
windows下安装bash bash的目录位置C:\Users\张政\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgsc\LocalState\rootfs原创 2021-10-05 16:32:15 · 771 阅读 · 0 评论 -
2021-09-28 filter监听器
web3js filter监听器filter监听器filter监听器//定义一个监听器var Web3 = require("web3")var web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545"))var filter = new web3.eth.filter("latest") //可选参数 latest 和pending 分别用来返回区块信息和交易信息filter.watch((err,res)=原创 2021-09-28 15:43:51 · 9662 阅读 · 0 评论