-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.http
More file actions
54 lines (27 loc) · 1.13 KB
/
test.http
File metadata and controls
54 lines (27 loc) · 1.13 KB
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
API_PORT=3000 P2P_PORT=5000 npm start
API_PORT=3001 P2P_PORT=5001 PEERS=ws://localhost:5000 npm start
API_PORT=3002 P2P_PORT=5002 PEERS=ws://localhost:5000 npm start
API_PORT=3003 P2P_PORT=5003 PEERS=ws://localhost:5000 npm start
API_PORT=3004 P2P_PORT=5004 PEERS=ws://localhost:5000 npm start
API_PORT=3005 P2P_PORT=5005 PEERS=ws://localhost:5000 npm start
curl http://localhost:3000/stats
curl http://localhost:3000/miner
curl -X POST http://localhost:3000/wallet
curl http://localhost:3000/wallet/a8n75
curl http://localhost:3000/wallets
curl -X POST http://localhost:3000/transaction \
-H "Content-Type: application/json" \
-d '{
"fromWalletId": "ef4q8f",
"toAddress": "046f4a00ffd0708e6e33df895367436c67d2d83aa3916ecc35bf6f3895a47d519c0c864f414f72aae67b254feca38076056f6a7963efd5dcfa13c68e22feb9cc2a",
"amount": 8000
}'
curl http://localhost:3000/transactions/pending
curl http://localhost:3000/blockchain
curl -X POST http://localhost:3000/fund \
-H "Content-Type: application/json" \
-d '{
"walletId": "gb4whp",
"amount": 1000
}'
curl http://localhost:3000/wallet/9jby4s/transactions