随笔分类 -  10. 区块链

摘要:参考 https://geth.ethereum.org/docs/getting-started/dev-mode 在开发模式下启动 Geth 您可以使用该--datadir选项指定一个数据目录来维护两次运行之间的状态,否则,数据库是临时的并且在内存中: mkdir test-chain-dir 阅读全文
posted @ 2021-09-26 14:15 1766Af 阅读(67) 评论(0) 推荐(0) 编辑
摘要:创建合约 mkdir contracts vi HelloETH.sol pragma solidity ^0.8.7; contract HelloETH { function rate(uint a, uint b) public pure returns (uint){ return a * 阅读全文
posted @ 2021-09-26 14:14 1766Af 阅读(808) 评论(0) 推荐(0) 编辑
摘要:概述 API 参考 https://web3js.readthedocs.io/en/v1.4.0/index.html docker-compose.yml version: '3.1' services: ethereum: image: ethereum/client-go restart: 阅读全文
posted @ 2021-09-26 14:12 1766Af 阅读(1039) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示