Successful Response
const response = await fetch('https://ton-index.nownodes.io/masterchainInfo', {
method: 'GET',
headers: {},
});
const data = await response.json();
{
"last": {
"workchain": 0,
"shard": "text",
"seqno": 0,
"root_hash": "text",
"file_hash": "text",
"global_id": 0,
"version": 0,
"after_merge": false,
"before_split": false,
"after_split": false,
"want_merge": false,
"want_split": false,
"key_block": false,
"vert_seqno_incr": false,
"flags": 0,
"gen_utime": "text",
"start_lt": "text",
"end_lt": "text",
"validator_list_hash_short": 0,
"gen_catchain_seqno": 0,
"min_ref_mc_seqno": 0,
"prev_key_block_seqno": 0,
"vert_seqno": 0,
"master_ref_seqno": 0,
"rand_seed": "text",
"created_by": "text",
"tx_count": 0,
"masterchain_block_ref": {
"workchain": 0,
"shard": "text",
"seqno": 0
},
"prev_blocks": [
{
"workchain": 0,
"shard": "text",
"seqno": 0
}
]
},
"first": {
"workchain": 0,
"shard": "text",
"seqno": 0,
"root_hash": "text",
"file_hash": "text",
"global_id": 0,
"version": 0,
"after_merge": false,
"before_split": false,
"after_split": false,
"want_merge": false,
"want_split": false,
"key_block": false,
"vert_seqno_incr": false,
"flags": 0,
"gen_utime": "text",
"start_lt": "text",
"end_lt": "text",
"validator_list_hash_short": 0,
"gen_catchain_seqno": 0,
"min_ref_mc_seqno": 0,
"prev_key_block_seqno": 0,
"vert_seqno": 0,
"master_ref_seqno": 0,
"rand_seed": "text",
"created_by": "text",
"tx_count": 0,
"masterchain_block_ref": {
"workchain": 0,
"shard": "text",
"seqno": 0
},
"prev_blocks": [
{
"workchain": 0,
"shard": "text",
"seqno": 0
}
]
}
}