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