Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 798 Bytes

README.md

File metadata and controls

28 lines (21 loc) · 798 Bytes

python app.py Runs a light-weight node made available via Flask webserver

Available endpoints are

  1. /chain/list - GET
    retrieves a list of blocks which makes up the blochain on the current node.
  2. /transaction/new - POST
    submits a new transaction to be added to the current node's blockchain when the next block mined.
  3. /mine - POST
    instructs the node to mine the next block
  4. /node/register - POST
    submits a list of active nodes on the blockchain network
  5. /node/resolve - POST
    attempts to identify the longest chain on the network and replaces the chain on the current node with the longest chain.
You will need atleast 2 nodes to attempt /node/resolve