createExternalMessageWithoutSignature function

Future<SignedMessage> createExternalMessageWithoutSignature({
  1. required Address dst,
  2. required String contractAbi,
  3. required String method,
  4. String? stateInit,
  5. required TokensObject input,
  6. required Duration timeout,
})

Returns SignedMessage from nekoton or throws error

Implementation

Future<SignedMessage> createExternalMessageWithoutSignature({
  required Address dst,
  required String contractAbi,
  required String method,
  String? stateInit,
  required TokensObject input,
  required Duration timeout,
}) async {
  final res = await createLib().createExternalMessageWithoutSignature(
    dst: dst.address,
    contractAbi: contractAbi,
    method: method,
    input: jsonEncode(input),
    timeout: timeout.inMilliseconds,
    stateInit: stateInit,
  );
  return SignedMessage.fromJson(jsonDecode(res));
}