Oasis REST API
Learn how to interact with Figment's Oasis REST API

Source Documentation

You can review the full documentation on Figment's Github here.

Methods

GET/health

Description
Check the endpoint's health.
Parameters
No parameters.
Example Request
1
oasis--testnet.datahub.figment.io/health
Copied!
Example JSON output
1
ok
Copied!

GET/status

Description
Check the status of the application and the chain.
Parameters
No parameters.
Example Request
1
oasis--testnet.datahub.figment.io/status
Copied!
Example JSON output
1
{
2
"app_name": "oasishub-indexer",
3
"app_version": "0.7.2",
4
"go_version": "1.14",
5
"chain_app_version": 1703936,
6
"chain_block_version": 11,
7
"chain_id": "c93ff310b77d68d236d35f9df5d9a37073a88d388a29bd88d8",
8
"chain_name": "testnet-2020-09-15",
9
"genesis_height": 1,
10
"genesis_time": "2020-09-15T09:24:48.619538826+02:00",
11
"last_index_version": 2,
12
"last_indexed_height": 308,
13
"last_indexed_time": "2020-08-06T17:20:03Z",
14
"last_indexed_at": "2020-08-28T20:14:23.814427Z",
15
"indexing_lag": 508813
16
}
Copied!

GET/block

Description
Return block information by height.
Parameters
Parameter
Type
Description
height
integer
Block height. Default: 0 = last block
Example Request
1
oasis--testnet.datahub.figment.io/block?height=300
Copied!
Example JSON output
1
{
2
"app_version": 4294967296,
3
"block_version": 11,
4
"chain_id": "c93ff310b77d68d236d35f9df5d9a37073a88d388a29bd88d8",
5
"height": 300,
6
"time": "2020-09-15T10:07:19+02:00",
7
"last_block_id_hash":
8
"7CAA343A9FF4AD7C720346A6378B578D769E46D633091EC88D655313BCB2F3D8",
9
"last_commit_hash":
10
"42C3977D4C658FD807DD21BD7485D00869B6C089ECEEFBAE8B7932801531DCE5",
11
"data_hash":
12
"E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
13
"validators_hash":
14
"4246BB476F9329E17D838A769BAA0A756037EE99982E8F11417D1433C3845F4C",
15
"next_validators_hash":
16
"4246BB476F9329E17D838A769BAA0A756037EE99982E8F11417D1433C3845F4C",
17
"consensus_hash":
18
"048091BC7DDC283F77BFBF91D73C44DA58C3DF8A9CBC867405D8B7F3DAADA22F",
19
"app_hash": "DB98AF442B8A0331EBD45B9F38755C12F83C3486C4F32F05A3396BEE8CCF301F",
20
"last_results_hash":
21
"E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
22
"evidence_hash":
23
"E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
24
"proposer_address": "A9972E73FDAAFF793118561456D8C89A610D9E2B"
25
}
Copied!

GET/block_times/:limit

Description
Get the last X block times.
Parameters
Parameter
Type
Description
limit
integer * required
limit of blocks queried
Example Request
1
oasis--testnet.datahub.figment.io/block_times/5
Copied!
Example JSON output
1
{
2
"start_height": 304,
3
"end_height": 308,
4
"start_time": "2020-08-06T17:19:35Z",
5
"end_time": "2020-08-06T17:20:03Z",
6
"count": 5,
7
"diff": 28,
8
"avg": 5.6
9
}
Copied!

GET/blocks_summary

Description
Get a summary of block data over a defined period of time.
Parameters
Parameter
Type
Description
interval
string * required
Time interval: hour or day
period
string * required
Summary period (i.e. 24 hours)
Example Request
1
oasis--testnet.datahub.figment.io/blocks_summary?interval=hour&period=8%20hours
Copied!
Example JSON output
1
[
2
{
3
"id": 479,
4
"created_at": "2020-10-20T18:00:27.020065Z",
5
"updated_at": "2020-10-20T19:00:27.011807Z",
6
"index_version": 4,
7
"time_interval": "hour",
8
"time_bucket": "2020-10-20T18:00:00Z",
9
"count": 610,
10
"block_time_avg": 5.886885
11
},
12
{
13
"id": 480,
14
"created_at": "2020-10-20T19:00:27.015561Z",
15
"updated_at": "2020-10-20T20:00:27.011526Z",
16
"index_version": 4,
17
"time_interval": "hour",
18
"time_bucket": "2020-10-20T19:00:00Z",
19
"count": 611,
20
"block_time_avg": 5.88707
21
},
22
{
23
"id": 481,
24
"created_at": "2020-10-20T20:00:27.014892Z",
25
"updated_at": "2020-10-20T21:00:23.01481Z",
26
"index_version": 4,
27
"time_interval": "hour",
28
"time_bucket": "2020-10-20T20:00:00Z",
29
"count": 610,
30
"block_time_avg": 5.888525
31
},
32
{
33
"id": 482,
34
"created_at": "2020-10-20T21:00:23.018495Z",
35
"updated_at": "2020-10-20T22:00:23.013671Z",
36
"index_version": 4,
37
"time_interval": "hour",
38
"time_bucket": "2020-10-20T21:00:00Z",
39
"count": 611,
40
"block_time_avg": 5.88216
41
},
42
{
43
"id": 483,
44
"created_at": "2020-10-20T22:00:23.017555Z",
45
"updated_at": "2020-10-20T23:00:23.014185Z",
46
"index_version": 4,
47
"time_interval": "hour",
48
"time_bucket": "2020-10-20T22:00:00Z",
49
"count": 607,
50
"block_time_avg": 5.920923
51
},
52
{
53
"id": 484,
54
"created_at": "2020-10-20T23:00:23.018068Z",
55
"updated_at": "2020-10-21T00:00:23.012465Z",
56
"index_version": 4,
57
"time_interval": "hour",
58
"time_bucket": "2020-10-20T23:00:00Z",
59
"count": 608,
60
"block_time_avg": 5.904605
61
},
62
{
63
"id": 485,
64
"created_at": "2020-10-21T00:00:23.016585Z",
65
"updated_at": "2020-10-21T01:00:23.012607Z",
66
"index_version": 4,
67
"time_interval": "hour",
68
"time_bucket": "2020-10-21T00:00:00Z",
69
"count": 610,
70
"block_time_avg": 5.895082
71
},
72
{
73
"id": 487,
74
"created_at": "2020-10-21T01:00:23.016834Z",
75
"updated_at": "2020-10-21T02:00:23.015921Z",
76
"index_version": 4,
77
"time_interval": "hour",
78
"time_bucket": "2020-10-21T01:00:00Z",
79
"count": 611,
80
"block_time_avg": 5.883797
81
},
82
{
83
"id": 488,
84
"created_at": "2020-10-21T02:00:23.019662Z",
85
"updated_at": "2020-10-21T03:00:23.013096Z",
86
"index_version": 4,
87
"time_interval": "hour",
88
"time_bucket": "2020-10-21T02:00:00Z",
89
"count": 610,
90
"block_time_avg": 5.891803
91
}
92
]
Copied!

GET/transactions

Description
Get a list of transactions at a given height.
Parameters
Parameter
Type
Description
height
integer
Block height. Default: 0 = last
Example Request
1
oasis--testnet.datahub.figment.io/transactions?height=3000
Copied!
Example JSON output
1
{
2
"items": [
3
{
4
"public_key": "I/Vnwyi7FJdROFe64fbaqE3t55OLcUBY8hVK64VNrqc=",
5
"hash":
6
"dea9ee824c213baaa4b826d16617cf8f256cc1e42b08f464726cff274a866ad5",
7
"nonce": 494,
8
"fee": 0,
9
"gas_limit": 1172,
10
"gas_price": 0,
11
"method": "registry.RegisterNode",
12
"signature_verified": true
13
},
14
{
15
"public_key": "ejPrx9xTpKV3GTZgthFQWf3UPMFFBseRtc0A17ak1TU=",
16
"hash":
17
"8b3d3bf3b888a2ff57b286368a8fd0b0baba0a15c5034470e885be40d09d60b8",
18
"nonce": 492,
19
"fee": 0,
20
"gas_limit": 1172,
21
"gas_price": 0,
22
"method": "registry.RegisterNode",
23
"signature_verified": true
24
},
25
{
26
"public_key": "4rUqFOE27urnaltMm2XqyuxcghXs4xRep3AV3mXSTt4=",
27
"hash":
28
"326f722ab9871c5b748383957657d6972b1c3ba7a8b848069cd0da5032936beb",
29
"nonce": 492,
30
"fee": 0,
31
"gas_limit": 1172,
32
"gas_price": 0,
33
"method": "registry.RegisterNode",
34
"signature_verified": true
35
},
36
{
37
"public_key": "70ADXhkVY/lhHUrQ97yLuAikRrLc8Ypkp3vkO0VnEXk=",
38
"hash":
39
"4f3b7d7ff1fdf644d7fa5346cac2ba343117c47c15785b1cafdf0e51c0590464",
40
"nonce": 494,
41
"fee": 0,
42
"gas_limit": 1172,
43
"gas_price": 0,
44
"method": "registry.RegisterNode",
45
"signature_verified": true
46
},
47
{
48
"public_key": "hDQp4FhwWREN09nSGMPJAEYKeCmxG/joQivxfY3vyi8=",
49
"hash":
50
"9275891ff310cf848b6847fc9b9c217beb4a919990fbcb49bbe054388784c086",
51
"nonce": 492,
52
"fee": 0,
53
"gas_limit": 1172,
54
"gas_price": 0,
55
"method": "registry.RegisterNode",
56
"signature_verified": true
57
}
58
]
59
}
Copied!

GET/staking

Description
Get staking data at a given height.
Parameters
Parameter
Type
Description
height
integer
Block height. Default: 0 = last
Example Request
1
oasis--testnet.datahub.figment.io/staking?height=3000
Copied!
Example JSON output
1
{
2
"total_supply": 10000000000000000000,
3
"common_pool": 1872841004008158000,
4
"debonding_interval": 336,
5
"min_delegation_amount": 100000000000
6
}
Copied!

GET/delegations

Description
Get a list of delegations at a given height.
Parameters
Parameter
Type
Description
height
integer
Block height. Default: 0 = last
Example Request
1
oasis--testnet.datahub.figment.io/delegations?height=3000
Copied!
Example JSON output
1
{
2
"items": [
3
{
4
"validator_uid": "oasis1qz22xm9vyg0uqxncc667m4j4p5mrsj455c743lfn",
5
"delegator_uid": "oasis1qpdks9ccwxa27hyccd78d58vhpl9wyddmy4xvhvk",
6
"shares": 6081081000000000
7
},
8
{
9
"validator_uid": "oasis1qz22xm9vyg0uqxncc667m4j4p5mrsj455c743lfn",
10
"delegator_uid": "oasis1qp7hpak0wuymn3pqtwf2cpaxsm25v6ydhuzkxupe",
11
"shares": 41340000000000000
12
},
13
{
14
"validator_uid": "oasis1qz22xm9vyg0uqxncc667m4j4p5mrsj455c743lfn",
15
"delegator_uid": "oasis1qz22xm9vyg0uqxncc667m4j4p5mrsj455c743lfn",
16
"shares": 947568821268224
17
},
18
{
19
"validator_uid": "oasis1qz22xm9vyg0uqxncc667m4j4p5mrsj455c743lfn",
20
"delegator_uid": "oasis1qrad7s7nqm4gvyzr8yt2rdk0ref489rn3vn400d6",
21
"shares": 44785000000000000
22
},
23
{
24
"validator_uid": "oasis1qz22xm9vyg0uqxncc667m4j4p5mrsj455c743lfn",
25
"delegator_uid": "oasis1qqs6ylpfurhf6gc9mw232fkmrt3d0673lyzc5xf2",
26
"shares": 27027027000000000
27
},
28
{
29
"validator_uid": "oasis1qq3xrq0urs8qcffhvmhfhz4p0mu7ewc8rscnlwxe",
30
"delegator_uid": "oasis1qq3xrq0urs8qcffhvmhfhz4p0mu7ewc8rscnlwxe",
31
"shares": 51870937969335
32
},
33
{
34
"validator_uid": "oasis1qq3xrq0urs8qcffhvmhfhz4p0mu7ewc8rscnlwxe",
35
"delegator_uid": "oasis1qpdks9ccwxa27hyccd78d58vhpl9wyddmy4xvhvk",
36
"shares": 12162162000000000
37
}
38
]
39
}
Copied!

GET/delegations/:address

Description
Get a list of delegations for an address at a given height.
Parameters
Parameter
Type
Description
address
string * required
Address of the account.
height
integer
Block height. Default: 0 = last
Example Request
1
oasis--testnet.datahub.figment.io/delegations/oasis1qresj0vhmwawll6fe2vw2nlapkp6nj6etcx7a32h?height=3000
Copied!
Example JSON output
1
{
2
"items": [
3
{
4
"validator_uid": "",
5
"delegator_uid": "oasis1qz22xm9vyg0uqxncc667m4j4p5mrsj455c743lfn",
6
"shares": 947568821268224
7
}
8
]
9
}
Copied!

GET/debonding_delegations

Description
Get a list of unbonding delegations at a given height.
Parameters
Parameter
Type
Description
height
integer
Block height. Default: 0 = last
Example Request
1
oasis--testnet.datahub.figment.io/debonding_delegations?height=3000
Copied!
Example JSON output
1
{
2
"items": [
3
{
4
"validator_uid": "oasis1qq0xmq7r0z9sdv02t5j9zs7en3n6574gtg8v9fyt",
5
"delegator_uid": "oasis1qq0xmq7r0z9sdv02t5j9zs7en3n6574gtg8v9fyt",
6
"shares": 200479964729758,
7
"debond_end": 502
8
},
9
{
10
"validator_uid": "oasis1qzmwdlxy7cltmwt99u9pwqt3g0rdwgsqyvcqymmt",
11
"delegator_uid": "oasis1qzmwdlxy7cltmwt99u9pwqt3g0rdwgsqyvcqymmt",
12
"shares": 25160,
13
"debond_end": 783
14
},
15
{
16
"validator_uid": "oasis1qzmwdlxy7cltmwt99u9pwqt3g0rdwgsqyvcqymmt",
17
"delegator_uid": "oasis1qzmwdlxy7cltmwt99u9pwqt3g0rdwgsqyvcqymmt",
18
"shares": 25160831413870,
19
"debond_end": 783
20
},
21
{
22
"validator_uid": "oasis1qp4rp7adhegfktyg4aq3w6jelqumx6klfv5t7kvv",
23
"delegator_uid": "oasis1qp4rp7adhegfktyg4aq3w6jelqumx6klfv5t7kvv",
24
"shares": 60253851657470,
25
"debond_end": 644
26
},
27
{
28
"validator_uid": "oasis1qrs8zlh0mj37ug0jzlcykz808ylw93xwkvknm7yc",
29
"delegator_uid": "oasis1qrs8zlh0mj37ug0jzlcykz808ylw93xwkvknm7yc",
30
"shares": 30185987205492,
31
"debond_end": 624
32
},
33
{
34
"validator_uid": "oasis1qp4f47plgld98n5g2ltalalnndnzz96euv9n89lz",
35
"delegator_uid": "oasis1qp4f47plgld98n5g2ltalalnndnzz96euv9n89lz",
36
"shares": 10057247902324,
37
"debond_end": 753
38
},
39
{
40
"validator_uid": "oasis1qp4f47plgld98n5g2ltalalnndnzz96euv9n89lz",
41
"delegator_uid": "oasis1qp4f47plgld98n5g2ltalalnndnzz96euv9n89lz",
42
"shares": 90515231120916,
43
"debond_end": 753
44
},
45
{
46
"validator_uid": "oasis1qqx820g2geqzeyeyfnm5hgz72eaj9emajgqmscy0",
47
"delegator_uid": "oasis1qqx820g2geqzeyeyfnm5hgz72eaj9emajgqmscy0",
48
"shares": 25170015125066,
49
"debond_end": 812
50
},
51
{
52
"validator_uid": "oasis1qzugextrcdueshq63w7l9x4xglnusznsgqa95w7e",
53
"delegator_uid": "oasis1qzugextrcdueshq63w7l9x4xglnusznsgqa95w7e",
54
"shares": 100291669527,
55
"debond_end": 548
56
},
57
{
58
"validator_uid": "oasis1qz72lvk2jchk0fjrz7u2swpazj3t5p0edsdv7sf8",
59
"delegator_uid": "oasis1qz72lvk2jchk0fjrz7u2swpazj3t5p0edsdv7sf8",
60
"shares": 1303746994205131,
61
"debond_end": 542
62
},
63
{
64
"validator_uid": "oasis1qr0jwz65c29l044a204e3cllvumdg8cmsgt2k3ql",
65
"delegator_uid": "oasis1qr0jwz65c29l044a204e3cllvumdg8cmsgt2k3ql",
66
"shares": 50181679498740,
67
"debond_end": 594
68
},
69
{
70
"validator_uid": "oasis1qr0jwz65c29l044a204e3cllvumdg8cmsgt2k3ql",
71
"delegator_uid": "oasis1qr0jwz65c29l044a204e3cllvumdg8cmsgt2k3ql",
72
"shares": 50198690719128,
73
"debond_end": 619
74
}
75
]
76
}
Copied!

GET/debonding_delegations/:address

Description
Get a list of unbonding delegations for an address at a given height.
Parameters
Parameter
Type
Description
address
string * required
Address of the account
height
integer
Block height. Default: 0 = last
Example Request
1
oasis--testnet.datahub.figment.io/debonding_delegations/oasis1qzmwdlxy7cltmwt99u9pwqt3g0rdwgsqyvcqymmt?height=3000
Copied!
Example JSON output
1
{
2
"items": [
3
{
4
"delegator_uid": "oasis1qzmwdlxy7cltmwt99u9pwqt3g0rdwgsqyvcqymmt",
5
"shares": 25160,
6
"debond_end": 783
7
},
8
{
9
"delegator_uid": "oasis1qzmwdlxy7cltmwt99u9pwqt3g0rdwgsqyvcqymmt",
10
"shares": 25160831413870,
11
"debond_end": 783
12
}
13
]
14
}
Copied!

GET/account/:address

Description
Get the details for an account at a given height.
Parameters
Parameter
Type
Description
address
string * required
Address of the account
height
integer
Block height. Default: 0 = last
Example Request
1
oasis--testnet.datahub.figment.io/account/oasis1qzmwdlxy7cltmwt99u9pwqt3g0rdwgsqyvcqymmt?height=3000
Copied!
Example JSON output
1
{
2
"general_balance": 99999993476,
3
"general_nonce": 5,
4
"escrow_active_balance": 36013963721772220,
5
"escrow_active_total_shares": 36013963721772220,
6
"escrow_debonding_balance": 25160831439030,
7
"escrow_debonding_total_shares": 25160831439030
8
}
Copied!

GET/validators

Description
Get the list of validators at a given height.
Parameters
Parameter
Type
Description
height
integer
Block height. Default: 0 = last
Example Request
1
oasis--testnet.datahub.figment.io/validators?height=294601
Copied!
Example JSON output
1
{
2
"items": [
3
{
4
"height": 294601,
5
"time": "2020-10-21T18:20:52Z",
6
"entity_uid": "RFpWeibJDHnfgoq9mO1BJcxyDbIstDi22ZBhvgXvE1Y=",
7
"address": "oasis1qptk3ydjxuq3eenqwljdy45uxdye5tfg4sqar0fz",
8
"proposed": false,
9
"voting_power": 2856488193592111,
10
"total_shares": 45365768233650880,
11
"active_escrow_balance": 45704540073260780,
12
"commission": 5000,
13
"rewards": 0,
14
"precommit_validated": true,
15
"entity_name": ""
16
},
17
{
18
"height": 294601,
19
"time": "2020-10-21T18:20:52Z",
20
"entity_uid": "9D+kziTxFhg77+cyt+Fwd6eXREkZ1wHw7WX7VG57MeA=",
21
"address": "oasis1qpn83e8hm3gdhvpfv66xj3qsetkj3ulmkugmmxn3",
22
"proposed": false,
23
"voting_power": 3060577020321578,
24
"total_shares": 48607037157239100,
25
"active_escrow_balance": 48970013384400830,
26
"commission": 5000,
27
"rewards": 0,
28
"precommit_validated": true,
29
"entity_name": ""
30
},
31
{
32
"height": 294601,
33
"time": "2020-10-21T18:20:52Z",
34
"entity_uid": "kfr2A6K6TlvhQm4nz88Hczzkd2Aq5PlkxSpnmUUBAFs=",
35
"address": "oasis1qr0jwz65c29l044a204e3cllvumdg8cmsgt2k3ql",
36
"proposed": false,
37
"voting_power": 12483625971867172,
38
"total_shares": 198390369917524500,
39
"active_escrow_balance": 199741201371222750,
40
"commission": 15000,
41
"rewards": 0,
42
"precommit_validated": true,
43
"entity_name": ""
44
}
45
]
46
}
Copied!

GET/validators/for_min_height/:height

Description
Get the list of validators for all blocks higher than the provided height.
Parameters
Parameter
Type
Description
height
integer * required
Block height. Default:0 = last
Example Request
1
oasis--testnet.datahub.figment.io/validators/for_min_height/3000
Copied!
Example JSON output
1
{
2
"items": [
3
{
4
"id": 72,
5
"created_at": "2020-10-02T15:42:37.390745Z",
6
"updated_at": "2020-10-21T18:58:04.87753Z",
7
"started_at_height": 1,
8
"started_at": "2020-10-01T16:00:00Z",
9
"recent_at_height": 294979,
10
"recent_at": "2020-10-21T18:57:54Z",
11
"address": "oasis1qqf6wmc0ax3mykd028ltgtqr49h3qffcm50gwag3",
12
"entity_uid": "D8oCKJab4LtOMQJR0YQZXx+fMw6QHyTiv3YCfN8tM18=",
13
"recent_tendermint_address": "751FB63DFE5AC161B447F83DFB444C53B9CEC025",
14
"recent_voting_power": 2149106241687197,
15
"recent_total_shares": 34131370081831164,
16
"recent_active_escrow_balance": 34386248318908044,
17
"recent_commission": 5000,
18
"recent_rewards": 0,
19
"recent_as_validator_height": 294979,
20
"recent_proposed_height": 294949,
21
"accumulated_proposed_count": 2914,
22
"accumulated_uptime": 294073,
23
"accumulated_uptime_count": 294842,
24
"logo_url": "",
25
"entity_name": ""
26
},
27
{
28
"id": 60,
29
"created_at": "2020-10-02T15:42:37.369011Z",
30
"updated_at": "2020-10-21T18:58:04.84607Z",
31
"started_at_height": 1,
32
"started_at": "2020-10-01T16:00:00Z",
33
"recent_at_height": 294979,
34
"recent_at": "2020-10-21T18:57:54Z",
35
"address": "oasis1qpjuke27se2wnmvx6e8uc4l5h44yjp9h7g2clqfq",
36
"entity_uid": "3DRMMM7ye2HREvk8zz06OjMG6BuWjs84PLdSYChNHAw=",
37
"recent_tendermint_address": "A3A84620E8BF4352F66136F2F1BED2D8B260FFB8",
38
"recent_voting_power": 2252410462624335,
39
"recent_total_shares": 35772012376486948,
40
"recent_active_escrow_balance": 36039142217139430,
41
"recent_commission": 5000,
42
"recent_rewards": 0,
43
"recent_as_validator_height": 294979,
44
"recent_proposed_height": 294966,
45
"accumulated_proposed_count": 3051,
46
"accumulated_uptime": 294099,
47
"accumulated_uptime_count": 294846,
48
"logo_url": "",
49
"entity_name": ""
50
},
51
{
52
"id": 20,
53
"created_at": "2020-10-02T15:42:37.291957Z",
54
"updated_at": "2020-10-21T18:58:04.769736Z",
55
"started_at_height": 1,
56
"started_at": "2020-10-01T16:00:00Z",
57
"recent_at_height": 294979,
58
"recent_at": "2020-10-21T18:57:54Z",
59
"address": "oasis1qram2p9w3yxm4px5nth8n7ugggk5rr6ay5d284at",
60
"entity_uid": "RZowTXmfT+b6H6Vuz97VECIy2cq8tytTilv8AxbtvO8=",
61
"recent_tendermint_address": "4BFB3C2D1A495BBAE7569FFF15FEC5C2125F2083",
62
"recent_voting_power": 2689563690248565,
63
"recent_total_shares": 42714730379481500,
64
"recent_active_escrow_balance": 43033705420630800,
65
"recent_commission": 5000,
66
"recent_rewards": 0,
67
"recent_as_validator_height": 294979,
68
"recent_proposed_height": 294917,
69
"accumulated_proposed_count": 3644,
70
"accumulated_uptime": 294104,
71
"accumulated_uptime_count": 294857,
72
"logo_url": "",
73
"entity_name": ""
74
}
75
]
76
}
Copied!

GET/validator/:address

Description
Get validator details from its account address.
Parameters
Parameter
Type
Description
address
string * required
The validator's address
sequences_limit
integer
Number of sequences to include
Example Request
1
oasis--testnet.datahub.figment.io/validator/oasis1qqf6wmc0ax3mykd028ltgtqr49h3qffcm50gwag3?sequences_limit=1
Copied!
Example JSON output
1
{
2
"id": 72,
3
"created_at": "2020-10-02T15:42:37.390745Z",
4
"updated_at": "2020-10-21T19:02:34.606486Z",
5
"started_at_height": 1,
6
"started_at": "2020-10-01T16:00:00Z",
7
"recent_at_height": 295025,
8
"recent_at": "2020-10-21T19:02:26Z",
9
"address": "oasis1qqf6wmc0ax3mykd028ltgtqr49h3qffcm50gwag3",
10
"entity_uid": "D8oCKJab4LtOMQJR0YQZXx+fMw6QHyTiv3YCfN8tM18=",
11
"recent_tendermint_address": "751FB63DFE5AC161B447F83DFB444C53B9CEC025",
12
"recent_voting_power": 2149106241687197,
13
"recent_total_shares": 34131370081831164,
14
"recent_active_escrow_balance": 34386248318908044,
15
"recent_as_validator_height": 295025,
16
"recent_proposed_height": 294949,
17
"accumulated_proposed_count": 2914,
18
"uptime": 0.9973922302704755,
19
"logo_url": "",
20
"entity_name": "",
21
"last_sequences": [
22
{
23
"id": 72078735,
24
"height": 295025,
25
"time": "2020-10-21T19:02:26Z",
26
"entity_uid": "D8oCKJab4LtOMQJR0YQZXx+fMw6QHyTiv3YCfN8tM18=",
27
"address": "oasis1qqf6wmc0ax3mykd028ltgtqr49h3qffcm50gwag3",
28
"proposed": true,
29
"voting_power": 2149106241687197,
30
"total_shares": 34131370081831164,
31
"active_escrow_balance": 34386248318908044,
32
"commission": 15000,
33
"rewards": 0,
34
"precommit_validated": true
35
}
36
]
37
}
Copied!

GET/validators_summary

Description
Get a summary of all active validators during a given time period.
Parameters
Parameter
Type
Description
interval
string * required
Time interval: hour or day
period
string * required
Summary period (i.e. 24 hours)
address
string
Address of validator
Example Request
1
oasis--testnet.datahub.figment.io/validators_summary?address=oasis1qqf6wmc0ax3mykd028ltgtqr49h3qffcm50gwag3&interval=hour&period=2%20hours
Copied!
Example JSON output
1
[
2
{
3
"time_bucket": "2020-10-20T19:00:00Z",
4
"time_interval": "hour",
5
"voting_power_avg": 2839546761061643.5,
6
"voting_power_max": 12479047230101820,
7
"voting_power_min": 6296627070993,
8
"total_shares_avg": 45126947609382110,
9
"total_shares_max": 198379453452858300,
10
"total_shares_min": 100037249606298,
11
"active_escrow_balance_avg": 45433470051629280,
12
"active_escrow_balance_max": 199667940334482240,
13
"active_escrow_balance_min": 100747640035131,
14
"commission_avg": 9480,
15
"commission_max": 50000,
16
"commission_min": 1000,
17
"validated_sum": 46791,
18
"not_validated_sum": 256,
19
"proposed_sum": 611,
20
"uptime_avg": 0.9945586328565051
21
},
22
{
23
"time_bucket": "2020-10-20T20:00:00Z",
24
"time_interval": "hour",
25
"voting_power_avg": 2839592637175597,
26
"voting_power_max": 12479246270905140,
27
"voting_power_min": 6296727502195,
28
"total_shares_avg": 45127021049462970,
29
"total_shares_max": 198379928069266080,
30
"total_shares_min": 100037329384794,
31
"active_escrow_balance_avg": 45434201576619144,
32
"active_escrow_balance_max": 199671125038130560,
33
"active_escrow_balance_min": 100749246959989,
34
"commission_avg": 9480,
35
"commission_max": 50000,
36
"commission_min": 1000,
37
"validated_sum": 46899,
38
"not_validated_sum": 71,
39
"proposed_sum": 610,
40
"uptime_avg": 0.9984883968490526
41
},
42
{
43
"time_bucket": "2020-10-20T21:00:00Z",
44
"time_interval": "hour",
45
"voting_power_avg": 2839638387572298.5,
46
"voting_power_max": 12479445314883160,
47
"voting_power_min": 6296827934999,
48
"total_shares_avg": 45127094721467976,
49
"total_shares_max": 198380402686809380,
50
"total_shares_min": 100037409163354,
51
"active_escrow_balance_avg": 45434938876873290,
52
"active_escrow_balance_max": 199674309792574900,
53
"active_escrow_balance_min": 100750853910478,
54
"commission_avg": 9475,
55
"commission_max": 50000,
56
"commission_min": 1000,
57
"validated_sum": 46957,
58
"not_validated_sum": 90,
59
"proposed_sum": 611,
60
"uptime_avg": 0.9980870193636151
61
}
62
]
Copied!

GET/system_events/:address

Description
Get all system events for a given account.
Parameters
Parameter
Type
Description
address
string * required
Address of the account
after
integer
Returns events from blocks after the provided provided height
kind
string
Type of system event
Example Request
1
oasis--testnet.datahub.figment.io/system_events/oasis1qqf6wmc0ax3mykd028ltgtqr49h3qffcm50gwag3&after=300