Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 510 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 510 Bytes

goblockchain

Simple Golang Blockchain Implementation

Build

go build .

Usage

Show options:

./blockchaingo -h

To fetch the last block from the blockchain use any of the following:

./blockchaingo
./blockchaingo -list-last
./blockchaingo -ll

To list all blocks in the blockchain use any of the following:

./blockchaingo -list-all
./blockchaingo -la

To add a block use any of the following:

./blockchaingo -add "Block message"
./blockchaingo -a "Block message"