区块链技术从1.0时代以比特币为代表的数字化支付;到2.0时代以太坊为代表,数字支付和智能合约相结合;至今3.0时代,超出金融领域,为各行各业提出去中心化解决方法。

国家也提出以联盟链为发展方向进军区块链世界。

区块链所需要的环境配置好以后,接下来内容均为个人开发记录,仅供参考。(geth 客户端、web3j.py 交互、python开发使用)

初始化创世区块

 1 {
 2   "config": {
 3     "chainId": 666,
 4     "homesteadBlock": 0,
 5     "eip150Block": 0,
 6     "eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
 7     "eip155Block": 0,
 8     "eip158Block": 0,
 9     "byzantiumBlock": 0,
10     "constantinopleBlock": 0,
11     "petersburgBlock": 0,
12     "istanbulBlock": 0,
13     "ethash": {}
14   },
15   "nonce": "0x0",
16   "timestamp": "0x5ddf8f3e",
17   "extraData": "0x0000000000000000000000000000000000000000000000000000000000000000",
18   "gasLimit": "0x47b760",
19   "difficulty": "0x00002",
20   "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
21   "coinbase": "0x0000000000000000000000000000000000000000",
22   "alloc": { },
23   "number": "0x0",
24   "gasUsed": "0x0",
25   "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000"
26 }
genesis

相关文章:

  • 2021-06-10
  • 2022-12-23
  • 2022-01-09
  • 2021-06-09
  • 2021-04-11
  • 2021-11-05
  • 2021-09-02
  • 2021-12-05
猜你喜欢
  • 2021-08-12
  • 2021-12-11
  • 2021-05-27
  • 2021-09-27
  • 2021-04-27
  • 2021-08-12
  • 2022-12-23
相关资源
相似解决方案