-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapi.http
60 lines (42 loc) · 1.04 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
@address = {{wallet.response.body.*}}
# Change port for the different wallets
# 8000: sjquant, 8001: nico, 8002: solaqua
@host = http://localhost:8000
### Get Documentation
GET {{host}}/
### Get my wallet address
# @name wallet
GET {{host}}/my-wallet
### See all blocks
GET {{host}}/blocks
### Mine a block
POST {{host}}/blocks
{
"address": "{{address}}"
}
### Get a block
GET {{host}}/blocks/08ebbac37e4f6a3afa9a7c609d6bc631710f990e3ed6c4766ba82344987f6469
### Get a nonexistent block
GET {{host}}/blocks/nonexistent-block
### Get transaction outputs for an address
GET {{host}}/addresses/{{address}}/txnouts
### Get balance for an address
GET {{host}}/addresses/{{address}}/balance
### Get transactions inside blockchain memory pool
GET {{host}}/mempool
### Make transaction inside blockchain memory pool
POST {{host}}/transactions
{
"from": "{{address}}",
"to": "my-address",
"amount": 35
}
### See peers
GET {{host}}/peers
### Add a peer
POST {{host}}/peers
{
"address": "nico:8000"
}
### See app id
GET {{host}}/app-id