A successful response.
const response = await fetch('https://luna.nownodes.io/terra/alliances/{denom}', { method: 'GET', headers: {}, }); const data = await response.json();
{ "alliance": { "denom": "text", "reward_weight": "text", "take_rate": "text", "total_tokens": "text", "total_validator_shares": "text", "reward_start_time": "2024-12-22T01:53:43.788Z", "reward_change_rate": "text", "reward_change_interval": "text", "last_reward_change_time": "2024-12-22T01:53:43.788Z", "reward_weight_range": { "min": "text", "max": "text" }, "is_initialized": false } }
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://luna.nownodes.io/terra/alliances', { method: 'GET', headers: {}, }); const data = await response.json();
{ "alliances": [ { "denom": "text", "reward_weight": "text", "take_rate": "text", "total_tokens": "text", "total_validator_shares": "text", "reward_start_time": "2024-12-22T01:53:43.788Z", "reward_change_rate": "text", "reward_change_interval": "text", "last_reward_change_time": "2024-12-22T01:53:43.788Z", "reward_weight_range": { "min": "text", "max": "text" }, "is_initialized": false } ], "pagination": { "next_key": "Ynl0ZXM=", "total": "text" } }