estimateFees method
Future<TxFeeEstimateResult>
estimateFees(
- TxInfoData txInfo,
- List params, {
- String? rawParam,
- String? jsApi,
Estimate tx fees, params
will be ignored if we have rawParam
.
Implementation
Future<TxFeeEstimateResult> estimateFees(TxInfoData txInfo, List params,
{String? rawParam, String? jsApi}) async {
final String param = rawParam != null ? rawParam : jsonEncode(params);
final Map tx = txInfo.toJson();
final res = await (service.estimateFees(tx, param, jsApi: jsApi));
return TxFeeEstimateResult.fromJson(res as Map<String, dynamic>);
}