cancelOrder method
Implementation
Future<Tx> cancelOrder({required String txHash}) async {
try {
var uri = Uri.parse("${entrypoint.uri}/v1.0/dln/order/$txHash/cancel-tx");
var response = await http.get(uri);
if (response.statusCode != 200) {
throw json.decode(response.body);
}
var jsonDecode = json.decode(response.body)['tx'];
return Tx.fromJson(jsonDecode);
} catch (e) {
throw Exception(e.toString());
}
}