-
Notifications
You must be signed in to change notification settings - Fork 6
/
rest.http
63 lines (35 loc) · 1.12 KB
/
rest.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
### Documentation
http://localhost:5001
### Blockchain status
http://localhost:5001/blockchain
### Blocks index
http://localhost:5001/blocks
### Block details
http://localhost:5001/blocks/d02cbd2d697ec0e804b4527d36162c47643c9b890e4450da8b728bf8c139eaf3
### Block creation
POST http://localhost:5001/blocks
### Server's wallet details
http://localhost:5001/wallet/server
### Wallet details
http://localhost:5001/wallet/224c4ab3ef55080f2fd26c9268e5d134f7cafc0ab44badc2b721d4aaea88bf6ba86225643d2410d7309f5f3fe323fe317b16eb314356f5672ef4b9c9044a75a5
### Wallet balance and outputs
http://localhost:5001/wallet/lior?details=true
### Mempool transactions
http://localhost:5001/mempool
### Transaction creation
POST http://localhost:5001/transactions
{
"to": "224c4ab3ef55080f2fd26c9268e5d134f7cafc0ab44badc2b721d4aaea88bf6ba86225643d2410d7309f5f3fe323fe317b16eb314356f5672ef4b9c9044a75a5",
"amount": 51
}
### Peers index
http://localhost:5001/peers
### Connect to peer
POST http://localhost:5001/peers
{
"ip": "127.0.0.1",
"port": "5002"
}
### Upgrade connection to web sockets
http://localhost:5001/peers/upgrade
###