A successful response.
const response = await fetch('https://zetachain.nownodes.io/zeta-chain/crosschain/gasPrice/{index}', { method: 'GET', headers: {}, }); const data = await response.json();
{ "GasPrice": { "creator": "text", "index": "text", "chain_id": "text", "signers": [ "text" ], "block_nums": [ "text" ], "prices": [ "text" ], "median_index": "text", "priority_fees": [ "text" ] } }
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/crosschain/gasPrice', { method: 'GET', headers: {}, }); const data = await response.json();
{ "GasPrice": [ { "creator": "text", "index": "text", "chain_id": "text", "signers": [ "text" ], "block_nums": [ "text" ], "prices": [ "text" ], "median_index": "text", "priority_fees": [ "text" ] } ], "pagination": { "next_key": "Ynl0ZXM=", "total": "text" } }