getStakingParameters method
Implementation
Future<StakingApiParams> getStakingParameters() async {
String rootPath =
"${TerraClientConfiguration.blockchainResourcePath}${CosmosBaseConstants.COSMOS_STAKING_PARAMS}";
var response = await apiRequester.getAsync<StakingCommonJson>(rootPath);
if (response.successful!) {
return StakingCommonJson.fromJson(response.result!).params;
}
throw Exception("");
}