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/block_headers', { method: 'GET', headers: {}, }); const data = await response.json();
{ "block_headers": [ { "height": "text", "hash": "Ynl0ZXM=", "parent_hash": "Ynl0ZXM=", "chain_id": "text", "header": { "ethereum_header": "Ynl0ZXM=", "bitcoin_header": "Ynl0ZXM=" } } ], "pagination": { "next_key": "Ynl0ZXM=", "total": "text" } }
const response = await fetch('https://zetachain.nownodes.io/zeta-chain/lightclient/block_headers/{block_hash}', { method: 'GET', headers: {}, }); const data = await response.json();
{ "block_header": { "height": "text", "hash": "Ynl0ZXM=", "parent_hash": "Ynl0ZXM=", "chain_id": "text", "header": { "ethereum_header": "Ynl0ZXM=", "bitcoin_header": "Ynl0ZXM=" } } }