crystal language cryptocurrency demo
TODO: Write installation instructions here
PORT=3000 crystal run src/server.cr
PORT=3001 crystal run src/server.cr
curl -X POST http://0.0.0.0:3000/nodes/register -H "Content-Type: application/json" -d '{"nodes": ["http://0.0.0.0:3001"]}'
curl -X POST http://0.0.0.0:3001/transactions/new -H "Content-Type: application/json" -d '{"from": "fnu", "to":"batman", "amount": 777}'
curl http://0.0.0.0:3001/pending
curl http://0.0.0.0:3000/chain
curl http://0.0.0.0:3001/chain
curl http://0.0.0.0:3000/nodes/resolve
TODO: Write development instructions here