Skip to content
sadov edited this page Feb 20, 2018 · 10 revisions

Welcome to the Block[Chain] Alchemy Laboratory Framework wiki!

REST API

  • /mine [GET] -- mining of new block and placing them to chain of the current node. For ex.:
curl -s http://localhost:5000/mine
  • /transactions/new [POST] -- making of new transaction. For ex.:
curl -s -X POST -H 'Content-Type: application/json' -d '{"sender": "", "recipient": "a04434638886485ab60be72e8cb04069", "amount": 10}' http://localhost:5001/transactions/new
  • /chain [GET] -- get current state of chain of blocks from this node. For ex:
curl -s http://localhost:5000/chain
  • /nodes [GET] -- get list of slave nodes connected to master node. For ex:
curl http://localhost:5000/nodes
  • /nodes/register [POST] -- add node to slaves list in master node. For ex.:
curl -s -X POST -H 'Content-Type: application/json' -d '{"nodes": ["http://localhost:5001"]}' http://localhost:5000/nodes/register
  • /nodes [DELETE] -- clear list of slave nodes in master node. For ex:
curl -s -X DELETE -H Content-Type: application/json http://localhost:5000/nodes
  • /nodes/resolve [GET] -- run the consensus machinery by master node on slave nodes. For ex.:
curl -s http://localhost:5000/nodes/resolve
Clone this wiki locally