ABEYChain Docs
Search…
ABEYChain Docs
Overview
Installation
Installation
RPC
Management API
JSON RPC API
Usage
Account-Address
Managing-your-accounts
Command-Line-Options
Backup-Restore
DPOS
Staking-Guide
Staking-Contract
Staking-ABI
Powered By
GitBook
Staking-ABI
1
[
2
{
3
"name"
:
"Deposit"
,
4
"inputs"
:
[
5
{
6
"type"
:
"address"
,
7
"name"
:
"from"
,
8
"indexed"
:
true
9
},
10
{
11
"type"
:
"bytes"
,
12
"name"
:
"pubkey"
,
13
"indexed"
:
false
14
},
15
{
16
"type"
:
"uint256"
,
17
"name"
:
"value"
,
18
"indexed"
:
false
19
},
20
{
21
"type"
:
"uint256"
,
22
"name"
:
"fee"
,
23
"indexed"
:
false
24
}
25
],
26
"anonymous"
:
false
,
27
"type"
:
"event"
28
},
29
{
30
"name"
:
"Delegate"
,
31
"inputs"
:
[
32
{
33
"type"
:
"address"
,
34
"name"
:
"from"
,
35
"indexed"
:
true
36
},
37
{
38
"type"
:
"address"
,
39
"name"
:
"holder"
,
40
"indexed"
:
true
41
},
42
{
43
"type"
:
"uint256"
,
44
"name"
:
"value"
,
45
"indexed"
:
false
46
}
47
],
48
"anonymous"
:
false
,
49
"type"
:
"event"
50
},
51
{
52
"name"
:
"Undelegate"
,
53
"inputs"
:
[
54
{
55
"type"
:
"address"
,
56
"name"
:
"from"
,
57
"indexed"
:
true
58
},
59
{
60
"type"
:
"address"
,
61
"name"
:
"holder"
,
62
"indexed"
:
true
63
},
64
{
65
"type"
:
"uint256"
,
66
"name"
:
"value"
,
67
"indexed"
:
false
68
}
69
],
70
"anonymous"
:
false
,
71
"type"
:
"event"
72
},
73
{
74
"name"
:
"WithdrawDelegate"
,
75
"inputs"
:
[
76
{
77
"type"
:
"address"
,
78
"name"
:
"from"
,
79
"indexed"
:
true
80
},
81
{
82
"type"
:
"address"
,
83
"name"
:
"holder"
,
84
"indexed"
:
true
85
},
86
{
87
"type"
:
"uint256"
,
88
"name"
:
"value"
,
89
"indexed"
:
false
90
}
91
],
92
"anonymous"
:
false
,
93
"type"
:
"event"
94
},
95
{
96
"name"
:
"Cancel"
,
97
"inputs"
:
[
98
{
99
"type"
:
"address"
,
100
"name"
:
"from"
,
101
"indexed"
:
true
102
},
103
{
104
"type"
:
"uint256"
,
105
"name"
:
"value"
,
106
"indexed"
:
false
107
}
108
],
109
"anonymous"
:
false
,
110
"type"
:
"event"
111
},
112
{
113
"name"
:
"Withdraw"
,
114
"inputs"
:
[
115
{
116
"type"
:
"address"
,
117
"name"
:
"from"
,
118
"indexed"
:
true
119
},
120
{
121
"type"
:
"uint256"
,
122
"name"
:
"value"
,
123
"indexed"
:
false
124
}
125
],
126
"anonymous"
:
false
,
127
"type"
:
"event"
128
},
129
{
130
"name"
:
"Append"
,
131
"inputs"
:
[
132
{
133
"type"
:
"address"
,
134
"name"
:
"from"
,
135
"indexed"
:
true
136
},
137
{
138
"type"
:
"uint256"
,
139
"name"
:
"value"
,
140
"indexed"
:
false
141
}
142
],
143
"anonymous"
:
false
,
144
"type"
:
"event"
145
},
146
{
147
"name"
:
"SetFee"
,
148
"inputs"
:
[
149
{
150
"type"
:
"address"
,
151
"name"
:
"from"
,
152
"indexed"
:
true
153
},
154
{
155
"type"
:
"uint256"
,
156
"name"
:
"fee"
,
157
"indexed"
:
false
158
}
159
],
160
"anonymous"
:
false
,
161
"type"
:
"event"
162
},
163
{
164
"name"
:
"SetPubkey"
,
165
"inputs"
:
[
166
{
167
"type"
:
"address"
,
168
"name"
:
"from"
,
169
"indexed"
:
true
170
},
171
{
172
"type"
:
"bytes"
,
173
"name"
:
"pubkey"
,
174
"indexed"
:
false
175
}
176
],
177
"anonymous"
:
false
,
178
"type"
:
"event"
179
},
180
{
181
"name"
:
"deposit"
,
182
"outputs"
:
[],
183
"inputs"
:
[
184
{
185
"type"
:
"bytes"
,
186
"name"
:
"pubkey"
187
},
188
{
189
"type"
:
"uint256"
,
190
"name"
:
"fee"
191
},
192
{
193
"type"
:
"uint256"
,
194
"name"
:
"value"
195
}
196
],
197
"constant"
:
false
,
198
"payable"
:
false
,
199
"type"
:
"function"
200
},
201
{
202
"name"
:
"setFee"
,
203
"outputs"
:
[],
204
"inputs"
:
[
205
{
206
"type"
:
"uint256"
,
207
"name"
:
"fee"
208
}
209
],
210
"constant"
:
false
,
211
"payable"
:
false
,
212
"type"
:
"function"
213
},
214
{
215
"name"
:
"setPubkey"
,
216
"outputs"
:
[],
217
"inputs"
:
[
218
{
219
"type"
:
"bytes"
,
220
"name"
:
"pubkey"
221
}
222
],
223
"constant"
:
false
,
224
"payable"
:
false
,
225
"type"
:
"function"
226
},
227
{
228
"name"
:
"append"
,
229
"outputs"
:
[],
230
"inputs"
:
[
231
{
232
"type"
:
"uint256"
,
233
"name"
:
"value"
234
}
235
],
236
"constant"
:
false
,
237
"payable"
:
false
,
238
"type"
:
"function"
239
},
240
{
241
"name"
:
"delegate"
,
242
"outputs"
:
[],
243
"inputs"
:
[
244
{
245
"type"
:
"address"
,
246
"name"
:
"holder"
247
},
248
{
249
"type"
:
"uint256"
,
250
"name"
:
"value"
251
}
252
],
253
"constant"
:
false
,
254
"payable"
:
false
,
255
"type"
:
"function"
256
},
257
{
258
"name"
:
"undelegate"
,
259
"outputs"
:
[],
260
"inputs"
:
[
261
{
262
"type"
:
"address"
,
263
"name"
:
"holder"
264
},
265
{
266
"type"
:
"uint256"
,
267
"unit"
:
"wei"
,
268
"name"
:
"value"
269
}
270
],
271
"constant"
:
false
,
272
"payable"
:
false
,
273
"type"
:
"function"
274
},
275
{
276
"name"
:
"lockedBalance"
,
277
"outputs"
:
[
278
{
279
"type"
:
"uint256"
,
280
"name"
:
"out"
281
}
282
],
283
"inputs"
:
[
284
{
285
"type"
:
"address"
,
286
"name"
:
"owner"
287
}
288
],
289
"constant"
:
true
,
290
"payable"
:
false
,
291
"type"
:
"function"
292
},
293
{
294
"name"
:
"getDeposit"
,
295
"outputs"
:
[
296
{
297
"type"
:
"uint256"
,
298
"unit"
:
"wei"
,
299
"name"
:
"staked"
300
},
301
{
302
"type"
:
"uint256"
,
303
"unit"
:
"wei"
,
304
"name"
:
"locked"
305
},
306
{
307
"type"
:
"uint256"
,
308
"unit"
:
"wei"
,
309
"name"
:
"unlocked"
310
}
311
],
312
"inputs"
:
[
313
{
314
"type"
:
"address"
,
315
"name"
:
"owner"
316
}
317
],
318
"constant"
:
true
,
319
"payable"
:
false
,
320
"type"
:
"function"
321
},
322
{
323
"name"
:
"getDelegate"
,
324
"outputs"
:
[
325
{
326
"type"
:
"uint256"
,
327
"unit"
:
"wei"
,
328
"name"
:
"delegated"
329
},
330
{
331
"type"
:
"uint256"
,
332
"unit"
:
"wei"
,
333
"name"
:
"locked"
334
},
335
{
336
"type"
:
"uint256"
,
337
"unit"
:
"wei"
,
338
"name"
:
"unlocked"
339
}
340
],
341
"inputs"
:
[
342
{
343
"type"
:
"address"
,
344
"name"
:
"owner"
345
},
346
{
347
"type"
:
"address"
,
348
"name"
:
"holder"
349
}
350
],
351
"constant"
:
true
,
352
"payable"
:
false
,
353
"type"
:
"function"
354
},
355
{
356
"name"
:
"cancel"
,
357
"outputs"
:
[],
358
"inputs"
:
[
359
{
360
"type"
:
"uint256"
,
361
"unit"
:
"wei"
,
362
"name"
:
"value"
363
}
364
],
365
"constant"
:
false
,
366
"payable"
:
false
,
367
"type"
:
"function"
368
},
369
{
370
"name"
:
"withdraw"
,
371
"outputs"
:
[],
372
"inputs"
:
[
373
{
374
"type"
:
"uint256"
,
375
"unit"
:
"wei"
,
376
"name"
:
"value"
377
}
378
],
379
"constant"
:
false
,
380
"payable"
:
false
,
381
"type"
:
"function"
382
},
383
{
384
"name"
:
"withdrawDelegate"
,
385
"outputs"
:
[],
386
"inputs"
:
[
387
{
388
"type"
:
"address"
,
389
"name"
:
"holder"
390
},
391
{
392
"type"
:
"uint256"
,
393
"unit"
:
"wei"
,
394
"name"
:
"value"
395
}
396
],
397
"constant"
:
false
,
398
"payable"
:
false
,
399
"type"
:
"function"
400
}
401
]
Copied!
DPOS - Previous
Staking-Contract
Last modified
10mo ago
Copy link