- Get the repo cloned to the local
- Run the
$blockchain.py$ after checking the libs that imported are installed - Run the Postman, and creat a new request
- Then type
- http://127.0.0.1:5000/mine to mine and get a 'coin'
- http://127.0.0.1:5000/transactions/new to creat a transaction (Notice the code in Body)
- http://127.0.0.1:5000/chain to get the whole chain of your blockchain
- 将项目克隆到本地
- 运行
$blockchain.py$ ,运行之前检查使用的库是否全部安装 - 启动Postman软件,创建一个新的请求界面
- 然后键入:
- http://127.0.0.1:5000/mine 来挖矿,并得到来自原始节点的一个奖励
- http://127.0.0.1:5000/transactions/new 来创建一次交易(注意Body部分的代码,使用JSON格式)
- http://127.0.0.1:5000/chain 来得到你的区块链的整体结构