getParameters method

Future<WasmParams> getParameters()

Implementation

Future<WasmParams> getParameters() async {
  String rootPath =
      "${TerraClientConfiguration.blockchainResourcePath}${CosmosBaseConstants.COSMOS_WASM_PARAMS}";

  var response = await apiRequester.getAsync<WasmContainer>(rootPath);
  if (response.successful!) {
    var result = WasmContainer.fromJson(response.result!);
    return result.params;
  }

  throw Exception("");
}