getFeeForEncodedMessage method
Returns the network fee that will be charged to send message.
Implementation
Future<u64> getFeeForEncodedMessage(
final String message, {
final GetFeeForMessageConfig? config,
}) async {
final u64? fee = (await getFeeForEncodedMessageRaw(message, config: config)).result?.value;
return fee != null ? Future.value(fee) : Future.error(const JsonRpcException('Invalid fee.'));
}