Skip to content

lhartikk/naivecoin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Naivecoin: chapter 1

The branch for Naivecoin, chapter1

npm install
npm start
Get blockchain
curl https://localhost:3001/blocks
Create block
curl -H "Content-type:application/json" --data '{"data" : "Some data to the first block"}' https://localhost:3001/mineBlock
Add peer
curl -H "Content-type:application/json" --data '{"peer" : "ws:https://localhost:6001"}' https://localhost:3001/addPeer

Query connected peers

curl https://localhost:3001/peers

About

A tutorial for building a cryptocurrency

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published