getFeeForMessageRaw method

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

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

Implementation

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