You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23-8Lines changed: 23 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ Clean code approach to blockchain technology. Learn blockchain by reading source
12
12
-[x] Genesis block
13
13
-[x] Storing and validate Blockchain
14
14
-[x] Proof of Work with difficulty (missing consensus on the difficulty)
15
-
-[] Communicating with other nodes & controlling the node (based on ReactPHP)
15
+
-[X] Communicating with other nodes & controlling the node (based on ReactPHP)
16
16
-[ ] Going serverless with AWS Lambda (experiment)
17
17
-[ ] Start working on KondasCoin [akondas/coin](https://github.com/akondas/coin):rocket: (Transactions, Wallet, Transaction relaying, Maybe some UI)
18
18
@@ -40,21 +40,36 @@ bin/node --p2p-port=2020
40
40
41
41
To control node you can use simple (pseudo) REST API:
42
42
43
+
**[GET] /blocks**
44
+
Response (list of all blocks):
43
45
```
44
-
GET /blocks
45
-
46
-
Return list of blocks:
47
46
[{"index":0,"hash":"8b31c9ec8c2df21968aca3edd2bda8fc77ed45b0b3bc8bc39fa27d5c795bc829","previousHash":"","createdAt":"2018-02-23 23:59:59","data":"PHP is awesome!","difficulty":0,"nonce":0}]
0 commit comments