getTransactionFee method
Get transaction fees @param {Object} tx Transaction to estimate fees
Implementation
Future<TransactionFee> getTransactionFee(Transaction transaction) async {
log('getTransactionFee: requestHttp.body=${transaction.convertToJSON()}');
final responseHttp = await http.post(
Uri.parse('$endpoint/api/transaction_fee'),
body: transaction.convertToJSON(),
headers: kRequestHeaders,
);
log('getTransactionFee: responseHttp.body=${responseHttp.body}');
return transactionFeeFromJson(responseHttp.body);
}