remix部署至本地私有链

1. Ganache创建本地私有链
- 网络ID:5777
扩展:mainnet网络ID:1; ropsten网络ID:3 -
rpc server服务端口
自动生成的10个帐户,其中第一个060…18c就是被使用的一个。用来部署智能合约。
image.png
2. remix配置
选择第三个运行环境。

输入私有链的rpc地址和端口。 web3.js通过json-rpc与之交互。

3。部署

4. 测试
部署的账号060,拥有全部首次发行的代币:9999,被扩大18个数量级。

网友评论