getFeeForMessage method

Future<u64> getFeeForMessage(
  1. Message message, {
  2. GetFeeForMessageConfig? config,
})

Returns the network fee that will be charged to send message.

Implementation

Future<u64> getFeeForMessage(
  final Message message, {
  final GetFeeForMessageConfig? config,
}) {
  final String encoded = message.serialize().getString(BufferEncoding.base64);
  return getFeeForEncodedMessage(encoded, config: config);
}