createRawExternalMessage function

Future<SignedMessage> createRawExternalMessage({
  1. required Address dst,
  2. required Duration timeout,
  3. String? stateInit,
  4. String? body,
})

Create raw external message without real signing or throws error

Implementation

Future<SignedMessage> createRawExternalMessage({
  required Address dst,
  required Duration timeout,
  String? stateInit,
  String? body,
}) async {
  final result = await createLib().createRawExternalMessage(
    dst: dst.address,
    timeout: timeout.inMilliseconds,
    body: body,
    stateInit: stateInit,
  );

  return SignedMessage.fromJson(jsonDecode(result));
}