GetValidators returns validators on the active chain
OK response.
Error message.
"Something has failed"
Status of the response.
"error"
const response = await fetch('https://inj-indexer.nownodes.io/api/explorer/v1/validators', {
method: 'GET',
headers: {},
});
const data = await response.json();
{
"data": [
{
"commission_max_change_rate": "Voluptas voluptatem.",
"commission_max_rate": "Molestiae cum exercitationem adipisci ut.",
"commission_rate": "Ut fugit.",
"commission_update_time": "2013-01-16T20:50:22Z",
"consensus_address": "Placeat et aut.",
"delegator_shares": "Consequatur et.",
"description": {
"details": "Sed earum.",
"identity": "Non vitae maxime eveniet.",
"imageURL": "Et doloribus velit aut quo nisi.",
"moniker": "Adipisci consequatur fugiat optio deleniti.",
"security_contact": "Et cupiditate deleniti dolore magni.",
"website": "Facere et distinctio iusto."
},
"id": "Voluptatem qui qui dolor neque nisi.",
"imageURL": "Omnis pariatur omnis placeat sapiente.",
"jailed": true,
"missed": 13982291134840476000,
"moniker": "Inventore est ut molestias debitis.",
"operator_address": "Magni provident laborum doloribus.",
"proposed": 3994414458675379000,
"signed": 13658062409794822000,
"slashingEvents": [
{
"address": "Est explicabo aut assumenda.",
"blockNumber": 2854441797323437000,
"blockTimestamp": "1970-07-04T02:57:49Z",
"jailed": "Repellat odio doloribus aut neque eum expedita.",
"missed_blocks": 9145050579520674000,
"power": 6725453842054034000,
"reason": "Deleniti nobis et sed."
},
{
"address": "Est explicabo aut assumenda.",
"blockNumber": 2854441797323437000,
"blockTimestamp": "1970-07-04T02:57:49Z",
"jailed": "Repellat odio doloribus aut neque eum expedita.",
"missed_blocks": 9145050579520674000,
"power": 6725453842054034000,
"reason": "Deleniti nobis et sed."
}
],
"status": 1247445914,
"timestamp": "1971-08-24T19:08:03Z",
"tokens": "Reiciendis ipsam.",
"unbonding_height": 3119220592860484600,
"unbonding_time": "2001-08-03T02:41:03Z",
"uptime_percentage": 0.5368930450658841,
"uptimes": [
{
"block_number": 11183248329926631000,
"status": "proposed"
},
{
"block_number": 11183248329926631000,
"status": "proposed"
}
]
},
{
"commission_max_change_rate": "Voluptas voluptatem.",
"commission_max_rate": "Molestiae cum exercitationem adipisci ut.",
"commission_rate": "Ut fugit.",
"commission_update_time": "2013-01-16T20:50:22Z",
"consensus_address": "Placeat et aut.",
"delegator_shares": "Consequatur et.",
"description": {
"details": "Sed earum.",
"identity": "Non vitae maxime eveniet.",
"imageURL": "Et doloribus velit aut quo nisi.",
"moniker": "Adipisci consequatur fugiat optio deleniti.",
"security_contact": "Et cupiditate deleniti dolore magni.",
"website": "Facere et distinctio iusto."
},
"id": "Voluptatem qui qui dolor neque nisi.",
"imageURL": "Omnis pariatur omnis placeat sapiente.",
"jailed": true,
"missed": 13982291134840476000,
"moniker": "Inventore est ut molestias debitis.",
"operator_address": "Magni provident laborum doloribus.",
"proposed": 3994414458675379000,
"signed": 13658062409794822000,
"slashingEvents": [
{
"address": "Est explicabo aut assumenda.",
"blockNumber": 2854441797323437000,
"blockTimestamp": "1970-07-04T02:57:49Z",
"jailed": "Repellat odio doloribus aut neque eum expedita.",
"missed_blocks": 9145050579520674000,
"power": 6725453842054034000,
"reason": "Deleniti nobis et sed."
},
{
"address": "Est explicabo aut assumenda.",
"blockNumber": 2854441797323437000,
"blockTimestamp": "1970-07-04T02:57:49Z",
"jailed": "Repellat odio doloribus aut neque eum expedita.",
"missed_blocks": 9145050579520674000,
"power": 6725453842054034000,
"reason": "Deleniti nobis et sed."
}
],
"status": 1247445914,
"timestamp": "1971-08-24T19:08:03Z",
"tokens": "Reiciendis ipsam.",
"unbonding_height": 3119220592860484600,
"unbonding_time": "2001-08-03T02:41:03Z",
"uptime_percentage": 0.5368930450658841,
"uptimes": [
{
"block_number": 11183248329926631000,
"status": "proposed"
},
{
"block_number": 11183248329926631000,
"status": "proposed"
}
]
},
{
"commission_max_change_rate": "Voluptas voluptatem.",
"commission_max_rate": "Molestiae cum exercitationem adipisci ut.",
"commission_rate": "Ut fugit.",
"commission_update_time": "2013-01-16T20:50:22Z",
"consensus_address": "Placeat et aut.",
"delegator_shares": "Consequatur et.",
"description": {
"details": "Sed earum.",
"identity": "Non vitae maxime eveniet.",
"imageURL": "Et doloribus velit aut quo nisi.",
"moniker": "Adipisci consequatur fugiat optio deleniti.",
"security_contact": "Et cupiditate deleniti dolore magni.",
"website": "Facere et distinctio iusto."
},
"id": "Voluptatem qui qui dolor neque nisi.",
"imageURL": "Omnis pariatur omnis placeat sapiente.",
"jailed": true,
"missed": 13982291134840476000,
"moniker": "Inventore est ut molestias debitis.",
"operator_address": "Magni provident laborum doloribus.",
"proposed": 3994414458675379000,
"signed": 13658062409794822000,
"slashingEvents": [
{
"address": "Est explicabo aut assumenda.",
"blockNumber": 2854441797323437000,
"blockTimestamp": "1970-07-04T02:57:49Z",
"jailed": "Repellat odio doloribus aut neque eum expedita.",
"missed_blocks": 9145050579520674000,
"power": 6725453842054034000,
"reason": "Deleniti nobis et sed."
},
{
"address": "Est explicabo aut assumenda.",
"blockNumber": 2854441797323437000,
"blockTimestamp": "1970-07-04T02:57:49Z",
"jailed": "Repellat odio doloribus aut neque eum expedita.",
"missed_blocks": 9145050579520674000,
"power": 6725453842054034000,
"reason": "Deleniti nobis et sed."
}
],
"status": 1247445914,
"timestamp": "1971-08-24T19:08:03Z",
"tokens": "Reiciendis ipsam.",
"unbonding_height": 3119220592860484600,
"unbonding_time": "2001-08-03T02:41:03Z",
"uptime_percentage": 0.5368930450658841,
"uptimes": [
{
"block_number": 11183248329926631000,
"status": "proposed"
},
{
"block_number": 11183248329926631000,
"status": "proposed"
}
]
},
{
"commission_max_change_rate": "Voluptas voluptatem.",
"commission_max_rate": "Molestiae cum exercitationem adipisci ut.",
"commission_rate": "Ut fugit.",
"commission_update_time": "2013-01-16T20:50:22Z",
"consensus_address": "Placeat et aut.",
"delegator_shares": "Consequatur et.",
"description": {
"details": "Sed earum.",
"identity": "Non vitae maxime eveniet.",
"imageURL": "Et doloribus velit aut quo nisi.",
"moniker": "Adipisci consequatur fugiat optio deleniti.",
"security_contact": "Et cupiditate deleniti dolore magni.",
"website": "Facere et distinctio iusto."
},
"id": "Voluptatem qui qui dolor neque nisi.",
"imageURL": "Omnis pariatur omnis placeat sapiente.",
"jailed": true,
"missed": 13982291134840476000,
"moniker": "Inventore est ut molestias debitis.",
"operator_address": "Magni provident laborum doloribus.",
"proposed": 3994414458675379000,
"signed": 13658062409794822000,
"slashingEvents": [
{
"address": "Est explicabo aut assumenda.",
"blockNumber": 2854441797323437000,
"blockTimestamp": "1970-07-04T02:57:49Z",
"jailed": "Repellat odio doloribus aut neque eum expedita.",
"missed_blocks": 9145050579520674000,
"power": 6725453842054034000,
"reason": "Deleniti nobis et sed."
},
{
"address": "Est explicabo aut assumenda.",
"blockNumber": 2854441797323437000,
"blockTimestamp": "1970-07-04T02:57:49Z",
"jailed": "Repellat odio doloribus aut neque eum expedita.",
"missed_blocks": 9145050579520674000,
"power": 6725453842054034000,
"reason": "Deleniti nobis et sed."
}
],
"status": 1247445914,
"timestamp": "1971-08-24T19:08:03Z",
"tokens": "Reiciendis ipsam.",
"unbonding_height": 3119220592860484600,
"unbonding_time": "2001-08-03T02:41:03Z",
"uptime_percentage": 0.5368930450658841,
"uptimes": [
{
"block_number": 11183248329926631000,
"status": "proposed"
},
{
"block_number": 11183248329926631000,
"status": "proposed"
}
]
}
],
"errmsg": "Something has failed",
"s": "error"
}
GetValidator returns validator information on the active chain
"Dolores et labore."
OK response.
Validator defines the structure for validator information.
Error message.
"Something has failed"
Status of the response.
"error"
const response = await fetch('https://inj-indexer.nownodes.io/api/explorer/v1/validators/{address}', {
method: 'GET',
headers: {},
});
const data = await response.json();
{
"data": {
"commission_max_change_rate": "Voluptas voluptatem.",
"commission_max_rate": "Molestiae cum exercitationem adipisci ut.",
"commission_rate": "Ut fugit.",
"commission_update_time": "2013-01-16T20:50:22Z",
"consensus_address": "Placeat et aut.",
"delegator_shares": "Consequatur et.",
"description": {
"details": "Sed earum.",
"identity": "Non vitae maxime eveniet.",
"imageURL": "Et doloribus velit aut quo nisi.",
"moniker": "Adipisci consequatur fugiat optio deleniti.",
"security_contact": "Et cupiditate deleniti dolore magni.",
"website": "Facere et distinctio iusto."
},
"id": "Voluptatem qui qui dolor neque nisi.",
"imageURL": "Omnis pariatur omnis placeat sapiente.",
"jailed": true,
"missed": 13982291134840476000,
"moniker": "Inventore est ut molestias debitis.",
"operator_address": "Magni provident laborum doloribus.",
"proposed": 3994414458675379000,
"signed": 13658062409794822000,
"slashingEvents": [
{
"address": "Est explicabo aut assumenda.",
"blockNumber": 2854441797323437000,
"blockTimestamp": "1970-07-04T02:57:49Z",
"jailed": "Repellat odio doloribus aut neque eum expedita.",
"missed_blocks": 9145050579520674000,
"power": 6725453842054034000,
"reason": "Deleniti nobis et sed."
},
{
"address": "Est explicabo aut assumenda.",
"blockNumber": 2854441797323437000,
"blockTimestamp": "1970-07-04T02:57:49Z",
"jailed": "Repellat odio doloribus aut neque eum expedita.",
"missed_blocks": 9145050579520674000,
"power": 6725453842054034000,
"reason": "Deleniti nobis et sed."
}
],
"status": 1247445914,
"timestamp": "1971-08-24T19:08:03Z",
"tokens": "Reiciendis ipsam.",
"unbonding_height": 3119220592860484600,
"unbonding_time": "2001-08-03T02:41:03Z",
"uptime_percentage": 0.5368930450658841,
"uptimes": [
{
"block_number": 11183248329926631000,
"status": "proposed"
},
{
"block_number": 11183248329926631000,
"status": "proposed"
}
]
},
"errmsg": "Something has failed",
"s": "error"
}