Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 832 Bytes

README.md

File metadata and controls

40 lines (31 loc) · 832 Bytes

go创建一个简单的区块链

使用示例

进入到cmd文件夹下

cd go-blockchain/cmd

创建一个新的区块链

go run main.go create -address pibigstar

查看余额

go run main.go balance -address pibigstar

转账

go run main.go send -from pibigstar -to lei -amount 3

再次查看余额

go run main.go balance -address pibigstar

打印整个区块链

go run main.go list