-
Notifications
You must be signed in to change notification settings - Fork 0
/
api.http
41 lines (38 loc) · 823 Bytes
/
api.http
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
http://localhost:4000/
###
http://localhost:2000/blocks
###
POST http://localhost:2000/blocks
###
http://localhost:4000/status
###
POST http://localhost:2000/blocks
{
"message": "Data for my block"
}
###
http://localhost:4000/blocks/e829d8074402cfb78e5fb1ba407745ca7ffd3f1a55566dc5543d496fdb35d0d7
###
http://localhost:4000/balance/nico
###
http://localhost:4000/balance/unknown
###
http://localhost:4000/wallet
###
http://localhost:4000/balance/b9341a8bb193092b6c5b2434746456c9046f95cc91cd753fc168f1d1a007edc63baa803fbd171c2d1ea9d731a34e682db12a0f70a4d58fa5e96048814c17690e
###
POST http://localhost:2000/transactions
{
"to": "unknown",
"amount": 40
}
###
http://localhost:4000/mempool
###
POST http://localhost:2000/peers
{
"address": "127.0.0.1",
"port": "4000"
}
###
http://localhost:2000/peers