getTransactionCost method
Implementation
@override
Future<TransactionCost> getTransactionCost(
{required String networkUrl,
required String transactionRequestHexOrJson}) async {
final txCostStr = await promiseToFuture(
js_utils.getTransactionCost(networkUrl, transactionRequestHexOrJson));
final txCostJson = jsonDecode(txCostStr);
try {
return TransactionCost.fromJson(txCostJson);
} catch (err) {
return Future.error(err);
}
}