Globals API
x86 is now in the development stage.

get_chain_properties()

Retrieve the chain property object associated with the chain.

Example

1
{
2
"id": 4,
3
"method": "call",
4
"params": [
5
DATABASE_API_ID,
6
"get_chain_properties",
7
[]
8
]
9
}
Copied!

Returns

1
{
2
"id": 4,
3
"jsonrpc": "2.0",
4
"result": {
5
"id": "2.9.0",
6
"chain_id": "ee3aa7f1a6cc08a2759c2c9844a0dd475d5e9ee5a4a032f74c6d9fa1c0b9c89e",
7
"extensions": []
8
}
9
}
Copied!

get_global_properties()

Retrieve the current global property object.

Example

1
{
2
"id": 4,
3
"method": "call",
4
"params": [
5
DATABASE_API_ID,
6
"get_global_properties",
7
[]
8
]
9
}
Copied!

Returns

1
{
2
"id": 4,
3
"jsonrpc": "2.0",
4
"result": {
5
"id": "2.0.0",
6
"parameters": {
7
"current_fees": {
8
"parameters": [
9
[
10
0,
11
{
12
"fee": 20
13
}
14
],
15
[
16
1,
17
{
18
"fee": 20
19
}
20
],
21
[
22
2,
23
{
24
"fee": 20
25
}
26
],
27
[
28
3,
29
{
30
"basic_fee": 5000,
31
"premium_fee": 2000,
32
"price_per_kbyte": 1000
33
}
34
],
35
[
36
4,
37
{
38
"fee": 200,
39
"price_per_kbyte": 100
40
}
41
],
42
[
43
5,
44
{
45
"fee": 300000
46
}
47
],
48
[
49
6,
50
{
51
"fee": 200,
52
"price_per_kbyte": 100
53
}
54
],
55
[
56
7,
57
{
58
"symbol3": 500000,
59
"symbol4": 300000,
60
"long_symbol": 5000,
61
"price_per_kbyte": 10
62
}
63
],
64
[
65
8,
66
{
67
"fee": 5000,
68
"price_per_kbyte": 10
69
}
70
],
71
[
72
9,
73
{
74
"fee": 5000
75
}
76
],
77
[
78
10,
79
{
80
"fee": 50000
81
}
82
],
83
[
84
11,
85
{
86
"fee": 2000
87
}
88
],
89
[
90
12,
91
{
92
"fee": 2000
93
}
94
],
95
[
96
13,
97
{
98
"fee": 100
99
}
100
],
101
[
102
14,
103
{
104
"fee": 100
105
}
106
],
107
[
108
15,
109
{
110
"fee": 100
111
}
112
],
113
[
114
16,
115
{
116
"fee": 2000,
117
"price_per_kbyte": 10
118
}
119
],
120
[
121
17,
122
{
123
"fee": 2000,
124
"price_per_kbyte": 10
125
}
126
],
127
[
128
18,
129
{
130
"fee": 100
131
}
132
],
133
[
134
19,
135
{
136
"fee": 50000
137
}
138
],
139
[
140
20,
141
{
142
"fee": 200
143
}
144
],
145
[
146
21,
147
{
148
"fee": 10
149
}
150
],
151
[
152
22,
153
{
154
"fee": 0
155
}
156
],
157
[
158
23,
159
{
160
"fee": 0
161
}
162
],
163
[
164
24,
165
{
166
"fee": 20
167
}
168
],
169
[
170
25,
171
{
172
"fee": 20
173
}
174
],
175
[
176
26,
177
{
178
"fee": 100
179
}
180
],
181
[
182
27,
183
{
184
"fee": 100
185
}
186
],
187
[
188
28,
189
{}
190
],
191
[
192
29,
193
{
194
"fee": 100
195
}
196
],
197
[
198
30,
199
{}
200
],
201
[
202
31,
203
{
204
"fee": 200
205
}
206
],
207
[
208
32,
209
{
210
"fee": 200
211
}
212
],
213
[
214
33,
215
{}
216
],
217
[
218
34,
219
{}
220
],
221
[
222
35,
223
{}
224
],
225
[
226
36,
227
{
228
"fee": 200
229
}
230
],
231
[
232
37,
233
{
234
"fee": 200
235
}
236
],
237
[
238
38,
239
{
240
"fee": 0
241
}
242
],
243
[
244
39,
245
{
246
"fee": 0
247
}
248
],
249
[
250
40,
251
{
252
"fee": 0
253
}
254
],
255
[
256
41,
257
{
258
"fee": 0
259
}
260
],
261
[
262
42,
263
{
264
"fee": 0
265
}
266
],
267
[
268
43,
269
{
270
"fee": 0
271
}
272
],
273
[
274
44,
275
{
276
"fee": 0
277
}
278
],
279
[
280
45,
281
{
282
"fee": 0
283
}
284
],
285
[
286
46,
287
{
288
"fee": 0,
289
"pool_fee": 500000000
290
}
291
],
292
[
293
47,
294
{
295
"fee": 0
296
}
297
],
298
[
299
48,
300
{
301
"fee": 0
302
}
303
],
304
[
305
49,
306
{
307
"fee": 0
308
}
309
],
310
[
311
50,
312
{
313
"fee": 0
314
}
315
],
316
[
317
51,
318
{
319
"fee": 0
320
}
321
],
322
[
323
52,
324
{
325
"fee": 0
326
}
327
],
328
[
329
53,
330
{
331
"fee": 0
332
}
333
],
334
[
335
54,
336
{
337
"fee": 0
338
}
339
],
340
[
341
55,
342
{
343
"fee": 0
344
}
345
],
346
[
347
56,
348
{
349
"fee": 0
350
}
351
],
352
[
353
57,
354
{
355
"fee": 0
356
}
357
],
358
[
359
58,
360
{
361
"fee": 0
362
}
363
],
364
[
365
59,
366
{}
367
]
368
],
369
"scale": 10000
370
},
371
"maintenance_interval": 86400,
372
"maintenance_duration_seconds": 10,
373
"committee_proposal_review_period": 3600,
374
"maximum_transaction_size": 2097152,
375
"maximum_block_size": 5242880,
376
"maximum_time_until_expiration": 86400,
377
"maximum_proposal_lifetime": 2419200,
378
"maximum_asset_whitelist_authorities": 10,
379
"maximum_asset_feed_publishers": 10,
380
"maximum_authority_membership": 10,
381
"max_authority_depth": 2,
382
"block_emission_amount": 1000,
383
"block_producer_reward_ratio": 5000,
384
"committee_frozen_balance_to_activate": "100000000000",
385
"committee_maintenance_intervals_to_deposit": 10,
386
"committee_balance_unfreeze_duration_seconds": 2592000,
387
"x86_64_maximum_contract_size": 200000,
388
"frozen_balances_multipliers": [
389
[
390
90,
391
13000
392
],
393
[
394
180,
395
14000
396
],
397
[
398
360,
399
15000
400
]
401
],
402
"echorand_config": {
403
"_time_generate": 1000,
404
"_time_net_1mb": 2000,
405
"_time_net_256b": 1500,
406
"_creator_count": 10,
407
"_verifier_count": 12,
408
"_ok_threshold": 9,
409
"_max_bba_steps": 12,
410
"_gc1_delay": 0,
411
"_round_attempts": 3
412
},
413
"sidechain_config": {
414
"eth_contract_address": "9E1E1a4Bc97e8b6dB45fa9538C943761A10dac99",
415
"eth_committee_update_method": {
416
"method": "f1e3eb60",
417
"gas": 1000000
418
},
419
"eth_gen_address_method": {
420
"method": "ffcc34fd",
421
"gas": 1000000
422
},
423
"eth_withdraw_method": {
424
"method": "e21bd1ce",
425
"gas": 1000000
426
},
427
"eth_update_addr_method": {
428
"method": "7ff203ab",
429
"gas": 1000000
430
},
431
"eth_withdraw_token_method": {
432
"method": "1c69c0e2",
433
"gas": 1000000
434
},
435
"eth_collect_tokens_method": {
436
"method": "5940a240",
437
"gas": 1000000
438
},
439
"eth_committee_updated_topic": "514bf7702a7d2aca90dcf3d947158aad29563a17c1dbdc76d2eae84c22420142",
440
"eth_gen_address_topic": "1855f12530a368418f19b2b15227f19225915b8113c7e17d4c276e2a10225039",
441
"eth_deposit_topic": "77227a376c41a7533c952ebde8d7b44ee36c7a6cec0d3448f1a1e4231398356f",
442
"eth_withdraw_topic": "481c4276b65cda86cfcd095776a5e290a13932f5bed47d4f786b0ffc4d0d76ae",
443
"erc20_deposit_topic": "d6a701782aaded96fbe10d6bd46445ecef12edabc8eb5d3b15fb0e57f6395911",
444
"erc20_withdraw_topic": "ec7288d868c54d049bda9254803b6ddaaf0317b76e81601c0af91a480592b272",
445
"ETH_asset_id": "1.3.1",
446
"BTC_asset_id": "1.3.2",
447
"fines": {
448
"create_eth_address": -10
449
},
450
"gas_price": "10000000000",
451
"satoshis_per_byte": 23,
452
"coefficient_waiting_blocks": 100
453
},
454
"erc20_config": {
455
"create_token_fee": 1000,
456
"transfer_topic": "ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
457
"check_balance_method": {
458
"method": "70a08231",
459
"gas": 1000000
460
},
461
"burn_method": {
462
"method": "42966c68",
463
"gas": 1000000
464
},
465
"issue_method": {
466
"method": "40c10f19",
467
"gas": 1000000
468
}
469
},
470
"gas_price": {
471
"price": 1,
472
"gas_amount": 1000
473
},
474
"extensions": []
475
},
476
"active_committee_members": [
477
[
478
"1.4.0",
479
"1.2.6"
480
],
481
[
482
"1.4.1",
483
"1.2.7"
484
],
485
[
486
"1.4.2",
487
"1.2.8"
488
],
489
[
490
"1.4.3",
491
"1.2.9"
492
],
493
[
494
"1.4.4",
495
"1.2.10"
496
],
497
[
498
"1.4.5",
499
"1.2.11"
500
],
501
[
502
"1.4.6",
503
"1.2.12"
504
],
505
[
506
"1.4.7",
507
"1.2.13"
508
],
509
[
510
"1.4.8",
511
"1.2.14"
512
]
513
]
514
}
515
}
Copied!

get_config()

Retrieve compile-time constants.

Example

1
{
2
"id": 4,
3
"method": "call",
4
"params": [
5
DATABASE_API_ID,
6
"get_config",
7
[]
8
]
9
}
Copied!

Returns

1
{
2
"id": 4,
3
"jsonrpc": "2.0",
4
"result": {
5
"ECHO_SYMBOL": "ECHO",
6
"ECHO_ADDRESS_PREFIX": "ECHO",
7
"ECHO_ED_PREFIX": "ECHO",
8
"ECHO_MIN_ACCOUNT_NAME_LENGTH": 1,
9
"ECHO_MAX_ACCOUNT_NAME_LENGTH": 63,
10
"ECHO_MIN_ASSET_SYMBOL_LENGTH": 3,
11
"ECHO_MAX_ASSET_SYMBOL_LENGTH": 16,
12
"ECHO_MAX_SHARE_SUPPLY": "1000000000000000",
13
"ECHO_MAX_PAY_RATE": 10000,
14
"ECHO_MAX_SIG_CHECK_DEPTH": 2,
15
"ECHO_MIN_TRANSACTION_SIZE_LIMIT": 1024,
16
"ECHO_DEFAULT_MAX_TRANSACTION_SIZE": 524288,
17
"ECHO_DEFAULT_MAX_BLOCK_SIZE": 1048576,
18
"ECHO_DEFAULT_MAX_TIME_UNTIL_EXPIRATION": 86400,
19
"ECHO_DEFAULT_MAINTENANCE_INTERVAL": 86400,
20
"ECHO_DEFAULT_MAINTENANCE_DURATION_SECONDS": 10,
21
"ECHO_DEFAULT_COMMITTEE_FREEZE_DURATION_SECONDS": 2592000,
22
"ECHO_MIN_UNDO_HISTORY": 10,
23
"ECHO_MAX_UNDO_HISTORY": 10000,
24
"ECHO_MIN_BLOCK_SIZE_LIMIT": 4096,
25
"ECHO_MIN_TRANSACTION_EXPIRATION_LIMIT": 4,
26
"ECHO_BLOCKCHAIN_PRECISION": 100000000,
27
"ECHO_BLOCKCHAIN_PRECISION_DIGITS": 8,
28
"ECHO_DEFAULT_TRANSFER_FEE": 100000000,
29
"ECHO_MAX_INSTANCE_ID": "281474976710655",
30
"ECHO_100_PERCENT": 10000,
31
"ECHO_1_PERCENT": 100,
32
"ECHO_DEFAULT_PRICE_FEED_LIFETIME": 86400,
33
"ECHO_DEFAULT_MAX_AUTHORITY_MEMBERSHIP": 10,
34
"ECHO_DEFAULT_MAX_ASSET_WHITELIST_AUTHORITIES": 10,
35
"ECHO_DEFAULT_MAX_ASSET_FEED_PUBLISHERS": 10,
36
"ECHO_COLLATERAL_RATIO_DENOM": 1000,
37
"ECHO_DEFAULT_MIN_COMMITTEE_MEMBER_COUNT": 11,
38
"ECHO_MAX_COMMITTEE": 19,
39
"ECHO_DEFAULT_MAX_PROPOSAL_LIFETIME_SEC": 2419200,
40
"ECHO_DEFAULT_COMMITTEE_PROPOSAL_REVIEW_PERIOD_SEC": 1209600,
41
"ECHO_MAX_URL_LENGTH": 127,
42
"ECHO_DEFAULT_MINIMUM_FEEDS": 7,
43
"ECHO_REVERSIBLE_BLOCKS_COUNT": 15,
44
"ECHO_DEFAULT_MAX_X86_64_CONTRACT_SIZE": 200000,
45
"ECHO_NULL_ACCOUNT": "1.2.0",
46
"ECHO_COMMITTEE_ACCOUNT": "1.2.1",
47
"ECHO_RELAXED_COMMITTEE_ACCOUNT": "1.2.2",
48
"ECHO_NULL_AUTHORITY_ACCOUNT": "1.2.3",
49
"ECHO_TEMP_ACCOUNT": "1.2.4",
50
"ECHO_PROXY_TO_SELF_ACCOUNT": "1.2.5"
51
}
52
}
Copied!

get_chain_id()

Get the chain ID.

Example

1
{
2
"id": 4,
3
"method": "call",
4
"params": [
5
DATABASE_API_ID,
6
"get_chain_id",
7
[]
8
]
9
}
Copied!

Returns

1
{
2
"id": 4,
3
"jsonrpc": "2.0",
4
"result": "31cde47f6b94908c2b2ed67c3365c7f58bb744dac145ecf6dc0941e1167c34ab"
5
}
Copied!

get_dynamic_global_properties()

Retrieve the current dynamic global property object.

Example

1
{
2
"id": 4,
3
"method": "call",
4
"params": [
5
DATABASE_API_ID,
6
"get_dynamic_global_properties",
7
[]
8
]
9
}
Copied!

Returns

1
{
2
"id": 4,
3
"jsonrpc": "2.0",
4
"result": {
5
"id": "2.1.0",
6
"head_block_number": 108,
7
"head_block_id": "0000006ca384bf6b3cdbbd9b6b4278390f49f44e",
8
"time": "2019-10-14T10:25:31",
9
"next_maintenance_time": "2019-10-14T10:30:00",
10
"last_budget_time": "1970-01-01T00:00:00",
11
"committee_budget": 0,
12
"accounts_registered_this_interval": 0,
13
"dynamic_flags": 0,
14
"last_irreversible_block_num": 93,
15
"extensions": []
16
}
17
}
Copied!

get_git_revision()

Retrieve info about git revision of running node

Example

1
{
2
"id": 4,
3
"method": "call",
4
"params": [
5
DATABASE_API_ID,
6
"get_git_revision",
7
[]
8
]
9
}
Copied!

Returns

1
{
2
"id": 4,
3
"jsonrpc": "2.0",
4
"result": {
5
"ECHO_GIT_REVISION_SHA": "e910d1a1d8f00f4c2c86d047373e68bb6c482396",
6
"ECHO_GIT_REVISION_UNIX_TIMESTAMP": "5 days ago",
7
"ECHO_GIT_REVISION_DESCRIPTION": "0.20-rc.0-27-ge910d1a1"
8
}
9
}
Copied!

get_current_incentives_info

Returns information about incentives. The returned object contains incentives_pool that indicates amounts that stored in pool now and incentives per block for current interval.

Example

1
{
2
"id": 4,
3
"method": "call",
4
"params": [
5
DATABASE_API_ID,
6
"get_current_incentives_info",
7
[]
8
]
9
}
Copied!

Returns

1
{
2
"id": 4,
3
"jsonrpc": "2.0",
4
"result": {
5
"incentives_pool": [[
6
"1.3.0",
7
1506532392
8
]
9
],
10
"incentives": [[
11
0,
12
502177
13
]
14
]
15
}
16
}
Copied!

get_incentives_info(start_block end_block)

Returns the info about incentives in given block range [start_block, end_block]

Example

1
{
2
"id": 4,
3
"method": "call",
4
"params": [
5
DATABASE_API_ID,
6
"get_incentives_info",
7
[
8
67,
9
71
10
]
11
]
12
}
Copied!

Returns

1
{
2
"id": 4,
3
"jsonrpc": "2.0",
4
"result": [{
5
"incentives_pool": {
6
"id": "2.17.67",
7
"pool": [[
8
"1.3.0",
9
273122631
10
]
11
],
12
"block_number": 67
13
},
14
"incentives": [[
15
"1.3.0",
16
0
17
]]
18
},{
19
"incentives_pool": {
20
"id": "2.17.68",
21
"pool": [[
22
"1.3.0",
23
273030306
24
]
25
],
26
"block_number": 68
27
},
28
"incentives": [[
29
"1.3.0",
30
0
31
]]
32
},{
33
"incentives_pool": {
34
"id": "2.17.69",
35
"pool": [[
36