-
Notifications
You must be signed in to change notification settings - Fork 1
/
prv_spec.json
executable file
·109 lines (109 loc) · 1.82 KB
/
prv_spec.json
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
[
{
"name": "balance",
"params": {
"address": "address"
},
"returns": 0
},
{
"name" : "transaction",
"params": {
"from_address": "address",
"to_address": "address",
"amount": 0
},
"returns": "ok/fail"
},
{
"name" : "bc_height",
"params": {},
"returns": 0
},
{
"name" : "shutdown",
"params": {},
"returns": "ok/fail"
},
{
"name" : "address_transfer",
"params": {
"address": "address",
"pub_key": "pub_key"
},
"returns": "ok/fail"
},
{
"name" : "tx_push",
"params": {
"type" : 0,
"amount" : 0,
"send_addr" : "address",
"recv_addr" : "address",
"bind_pub_key" : "pub_key",
"tx_epoch" : 0,
"nonce" : 0,
"hash" : "hash",
"sign" : "sign"
},
"returns": "ok/fail"
},
{
"name" : "get_node_list",
"params": {},
"returns": [
"ip_port_pair"
]
},
{
"name" : "set_tx_mining_mode",
"params": {
"enabled": 1
},
"returns": "ok/fail"
},
{
"name" : "get_tx_mining_mode",
"params": {},
"returns": "ok/fail"
},
{
"name" : "get_my_weight",
"params": {},
"returns": 0
},
{
"name" : "get_address_pub_key",
"params": {
"address": "address"
},
"returns": "pub_key/fail"
},
{
"name" : "debug_set_key",
"params": {
"address": "address",
"pub_key": "pub_key",
"prv_key": "prv_key"
},
"returns": "ok/fail"
},
{
"name" : "debug_key_gen",
"params": {},
"returns": {
"pub_key": "pub_key",
"prv_key": "prv_key"
}
},
{
"name" : "debug_get_pub_key",
"params": {},
"returns": "pub_key"
},
{
"name" : "debug_get_prv_key",
"params": {},
"returns": "prv_key"
}
]