A python block chain demo.
python3 blockchain.py
GET Mine: curl http://127.0.0.1:5000/mine
GET full chain: curl http://127.0.0.1:5000/chain
POST new transaction:
curl -X POST -H "Content-Type: application/json" -d '{
"sender": "<sender>",
"recipient": "<recipient>",
"amount": <amount>
}' "<node_url>/transactions/new"
POST resigster node:
curl -X POST -H "Content-Type: application/json" -d '{
"nodes": ["<node_url>"]
}' "<node_url>/nodes/register"
GET nodes resolve: curl http://127.0.0.1:5000/nodes/resolve