GetBlocks returns blocks based upon the request params
OK response.
Paging defines the structure for required params for handling pagination
GetBlock returns block based upon the height or hash
"Ut molestias."
OK response.
Error message.
"Something has failed"
Status of the response.
"error"
const response = await fetch('https://inj-indexer.nownodes.io/api/explorer/v1/blocks', {
method: 'GET',
headers: {},
});
const data = await response.json();
{
"data": [
{
"block_hash": "Quisquam vel est quisquam fuga culpa.",
"height": 7913584344917350000,
"moniker": "Laborum aspernatur error non quia ipsam sed.",
"num_pre_commits": 3828964990679098000,
"num_txs": 7790533122912402000,
"parent_hash": "Fuga vel est tempore odio sed.",
"proposer": "Laudantium laborum ad corrupti.",
"timestamp": "1987-12-12T05:05:01Z",
"txs": [
{
"block_number": 7460329312294506000,
"block_timestamp": "1998-09-06T12:47:28Z",
"claim_ids": [
5582707798056534000,
2453355119793993000,
4868349734503005000,
8192557964697533000
],
"code": 1159005041,
"codespace": "Non id.",
"error_log": "Vitae temporibus ipsa facere incidunt.",
"hash": "Occaecati natus illum sunt autem dolores.",
"id": "Adipisci in aspernatur velit eaque ipsa.",
"messages": "Quasi iure iusto nam dolorem.",
"tx_number": 363156334822020400
},
{
"block_number": 7460329312294506000,
"block_timestamp": "1998-09-06T12:47:28Z",
"claim_ids": [
5582707798056534000,
2453355119793993000,
4868349734503005000,
8192557964697533000
],
"code": 1159005041,
"codespace": "Non id.",
"error_log": "Vitae temporibus ipsa facere incidunt.",
"hash": "Occaecati natus illum sunt autem dolores.",
"id": "Adipisci in aspernatur velit eaque ipsa.",
"messages": "Quasi iure iusto nam dolorem.",
"tx_number": 363156334822020400
},
{
"block_number": 7460329312294506000,
"block_timestamp": "1998-09-06T12:47:28Z",
"claim_ids": [
5582707798056534000,
2453355119793993000,
4868349734503005000,
8192557964697533000
],
"code": 1159005041,
"codespace": "Non id.",
"error_log": "Vitae temporibus ipsa facere incidunt.",
"hash": "Occaecati natus illum sunt autem dolores.",
"id": "Adipisci in aspernatur velit eaque ipsa.",
"messages": "Quasi iure iusto nam dolorem.",
"tx_number": 363156334822020400
},
{
"block_number": 7460329312294506000,
"block_timestamp": "1998-09-06T12:47:28Z",
"claim_ids": [
5582707798056534000,
2453355119793993000,
4868349734503005000,
8192557964697533000
],
"code": 1159005041,
"codespace": "Non id.",
"error_log": "Vitae temporibus ipsa facere incidunt.",
"hash": "Occaecati natus illum sunt autem dolores.",
"id": "Adipisci in aspernatur velit eaque ipsa.",
"messages": "Quasi iure iusto nam dolorem.",
"tx_number": 363156334822020400
}
]
},
{
"block_hash": "Quisquam vel est quisquam fuga culpa.",
"height": 7913584344917350000,
"moniker": "Laborum aspernatur error non quia ipsam sed.",
"num_pre_commits": 3828964990679098000,
"num_txs": 7790533122912402000,
"parent_hash": "Fuga vel est tempore odio sed.",
"proposer": "Laudantium laborum ad corrupti.",
"timestamp": "1987-12-12T05:05:01Z",
"txs": [
{
"block_number": 7460329312294506000,
"block_timestamp": "1998-09-06T12:47:28Z",
"claim_ids": [
5582707798056534000,
2453355119793993000,
4868349734503005000,
8192557964697533000
],
"code": 1159005041,
"codespace": "Non id.",
"error_log": "Vitae temporibus ipsa facere incidunt.",
"hash": "Occaecati natus illum sunt autem dolores.",
"id": "Adipisci in aspernatur velit eaque ipsa.",
"messages": "Quasi iure iusto nam dolorem.",
"tx_number": 363156334822020400
},
{
"block_number": 7460329312294506000,
"block_timestamp": "1998-09-06T12:47:28Z",
"claim_ids": [
5582707798056534000,
2453355119793993000,
4868349734503005000,
8192557964697533000
],
"code": 1159005041,
"codespace": "Non id.",
"error_log": "Vitae temporibus ipsa facere incidunt.",
"hash": "Occaecati natus illum sunt autem dolores.",
"id": "Adipisci in aspernatur velit eaque ipsa.",
"messages": "Quasi iure iusto nam dolorem.",
"tx_number": 363156334822020400
},
{
"block_number": 7460329312294506000,
"block_timestamp": "1998-09-06T12:47:28Z",
"claim_ids": [
5582707798056534000,
2453355119793993000,
4868349734503005000,
8192557964697533000
],
"code": 1159005041,
"codespace": "Non id.",
"error_log": "Vitae temporibus ipsa facere incidunt.",
"hash": "Occaecati natus illum sunt autem dolores.",
"id": "Adipisci in aspernatur velit eaque ipsa.",
"messages": "Quasi iure iusto nam dolorem.",
"tx_number": 363156334822020400
},
{
"block_number": 7460329312294506000,
"block_timestamp": "1998-09-06T12:47:28Z",
"claim_ids": [
5582707798056534000,
2453355119793993000,
4868349734503005000,
8192557964697533000
],
"code": 1159005041,
"codespace": "Non id.",
"error_log": "Vitae temporibus ipsa facere incidunt.",
"hash": "Occaecati natus illum sunt autem dolores.",
"id": "Adipisci in aspernatur velit eaque ipsa.",
"messages": "Quasi iure iusto nam dolorem.",
"tx_number": 363156334822020400
}
]
},
{
"block_hash": "Quisquam vel est quisquam fuga culpa.",
"height": 7913584344917350000,
"moniker": "Laborum aspernatur error non quia ipsam sed.",
"num_pre_commits": 3828964990679098000,
"num_txs": 7790533122912402000,
"parent_hash": "Fuga vel est tempore odio sed.",
"proposer": "Laudantium laborum ad corrupti.",
"timestamp": "1987-12-12T05:05:01Z",
"txs": [
{
"block_number": 7460329312294506000,
"block_timestamp": "1998-09-06T12:47:28Z",
"claim_ids": [
5582707798056534000,
2453355119793993000,
4868349734503005000,
8192557964697533000
],
"code": 1159005041,
"codespace": "Non id.",
"error_log": "Vitae temporibus ipsa facere incidunt.",
"hash": "Occaecati natus illum sunt autem dolores.",
"id": "Adipisci in aspernatur velit eaque ipsa.",
"messages": "Quasi iure iusto nam dolorem.",
"tx_number": 363156334822020400
},
{
"block_number": 7460329312294506000,
"block_timestamp": "1998-09-06T12:47:28Z",
"claim_ids": [
5582707798056534000,
2453355119793993000,
4868349734503005000,
8192557964697533000
],
"code": 1159005041,
"codespace": "Non id.",
"error_log": "Vitae temporibus ipsa facere incidunt.",
"hash": "Occaecati natus illum sunt autem dolores.",
"id": "Adipisci in aspernatur velit eaque ipsa.",
"messages": "Quasi iure iusto nam dolorem.",
"tx_number": 363156334822020400
},
{
"block_number": 7460329312294506000,
"block_timestamp": "1998-09-06T12:47:28Z",
"claim_ids": [
5582707798056534000,
2453355119793993000,
4868349734503005000,
8192557964697533000
],
"code": 1159005041,
"codespace": "Non id.",
"error_log": "Vitae temporibus ipsa facere incidunt.",
"hash": "Occaecati natus illum sunt autem dolores.",
"id": "Adipisci in aspernatur velit eaque ipsa.",
"messages": "Quasi iure iusto nam dolorem.",
"tx_number": 363156334822020400
},
{
"block_number": 7460329312294506000,
"block_timestamp": "1998-09-06T12:47:28Z",
"claim_ids": [
5582707798056534000,
2453355119793993000,
4868349734503005000,
8192557964697533000
],
"code": 1159005041,
"codespace": "Non id.",
"error_log": "Vitae temporibus ipsa facere incidunt.",
"hash": "Occaecati natus illum sunt autem dolores.",
"id": "Adipisci in aspernatur velit eaque ipsa.",
"messages": "Quasi iure iusto nam dolorem.",
"tx_number": 363156334822020400
}
]
}
],
"paging": {
"countBySubaccount": 3144167030999342600,
"from": 1916499695,
"next": [
"Ea rerum.",
"Aut dolorem cum voluptas quae.",
"Voluptas repellendus qui ipsam est."
],
"to": 391437627,
"total": 7364854934794692000
}
}
const response = await fetch('https://inj-indexer.nownodes.io/api/explorer/v1/blocks/{id}', {
method: 'GET',
headers: {},
});
const data = await response.json();
{
"data": {
"block_hash": "Nisi et non autem qui quisquam blanditiis.",
"height": 17801735147468460000,
"moniker": "Totam quaerat adipisci quia non tenetur ad.",
"num_pre_commits": 6767922304148378000,
"num_txs": 7120419597641302000,
"parent_hash": "Inventore ad praesentium iusto voluptatibus.",
"proposer": "Corporis aut unde possimus libero quae.",
"timestamp": "1994-02-23T11:14:26Z",
"total_txs": 6714566575838770000,
"txs": [
{
"block_number": 12096032869960399000,
"block_timestamp": "1982-06-19T15:39:06Z",
"claim_ids": [
3873692323631982600,
5450697942010433000
],
"code": 2092492935,
"codespace": "Magni maiores in incidunt.",
"error_log": "Asperiores hic necessitatibus quo tempora sunt.",
"hash": "Ut asperiores repellendus.",
"id": "Voluptate sunt temporibus eveniet ullam aut.",
"logs": "VXQgc2l0Lg==",
"messages": "VXQgbGFib3J1bS4=",
"tx_msg_types": "UXVpYSB0b3RhbS4=",
"tx_number": 12001273661897265000
},
{
"block_number": 12096032869960399000,
"block_timestamp": "1982-06-19T15:39:06Z",
"claim_ids": [
3873692323631982600,
5450697942010433000
],
"code": 2092492935,
"codespace": "Magni maiores in incidunt.",
"error_log": "Asperiores hic necessitatibus quo tempora sunt.",
"hash": "Ut asperiores repellendus.",
"id": "Voluptate sunt temporibus eveniet ullam aut.",
"logs": "VXQgc2l0Lg==",
"messages": "VXQgbGFib3J1bS4=",
"tx_msg_types": "UXVpYSB0b3RhbS4=",
"tx_number": 12001273661897265000
}
]
},
"errmsg": "Something has failed",
"s": "error"
}