-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPasteRight_API.txt
More file actions
62 lines (40 loc) · 1.09 KB
/
PasteRight_API.txt
File metadata and controls
62 lines (40 loc) · 1.09 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
55
56
57
58
59
60
61
62
pasteright v0.1.2 API
This part of documentation covers all the interfaces of Pasteright.
/new_transaction
http methods: "POST" only
POST data: json format
json formatted block data turns in
output ".Message", Status
-------------------------------------
/hash_lookup
http methods: "POST" only
POST data: hash value(string)
find related transaction from Hash
output string
note: output string is Json formatted
use json.loads(string) to format
-------------------------------------
/chain
http methods: "GET"
POST data: None
return all blocks data on chain
output dict object
-------------------------------------
/mine
http methods: "get"
POST data: None
un-chained transcations mined, new blocks added
output ".Message", Status
-------------------------------------
/add_nodes
http methods: "POST" only
POST data: json format
add friends and peers to Blockchain
output ".Message", Status
--------------------------------------
/add_block
http methods: "POST" only
POST data: json format
turn in and mine transaction in one step
output ".Message", Status
-------------------------------------