A successful response.
PageResponse is to be embedded in gRPC response messages where the corresponding request message has used PageRequest.
message SomeResponse { repeated Bar results = 1; PageResponse page = 2; }
const response = await fetch('https://zetachain.nownodes.io/zeta-chain/lightclient/chain_state/{chain_id}', { method: 'GET', headers: {}, }); const data = await response.json();
{ "chain_state": { "chain_id": "text", "latest_height": "text", "earliest_height": "text", "latest_block_hash": "Ynl0ZXM=" } }
const response = await fetch('https://zetachain.nownodes.io/zeta-chain/lightclient/chain_state', { method: 'GET', headers: {}, }); const data = await response.json();
{ "chain_state": [ { "chain_id": "text", "latest_height": "text", "earliest_height": "text", "latest_block_hash": "Ynl0ZXM=" } ], "pagination": { "next_key": "Ynl0ZXM=", "total": "text" } }