command
module
Version:
v0.0.0-...-fe8a212
Opens a new window with list of versions in this module.
Published: Apr 20, 2017
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
naivechain
A naive and simple implementation of blockchains.
Build And Run
HTTP API
-
query blocks
curl http://localhost:3001/blocks
-
mine block
curl -H "Content-type:application/json" --data '{"data" : "Some data to the first block"}' http://localhost:3001/mine_block
-
add peer
curl -H "Content-type:application/json" --data '{"peer" : "ws://localhost:6002"}' http://localhost:3001/add_peer
-
query peers
curl http://localhost:3001/peers
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.