getOrderStatus method
Implementation
Future getOrderStatus({required String txHash}) async {
try {
var uri = Uri.parse(
"https://stats-api.dln.trade/api/Orders/creationTxHash/$txHash");
var response = await http.get(uri);
if (response.statusCode != 200) {
throw json.decode(response.body);
}
var jsonDecode = json.decode(response.body)['state'];
return jsonDecode;
} catch (e) {
throw Exception(e.toString());
}
}