createExternalMessage function
Create external unsigned message that can be listened and handled or throws error
Implementation
Future<UnsignedMessage> createExternalMessage({
required String dst,
required String contractAbi,
required String method,
String? stateInit,
required TokensObject input,
required PublicKey publicKey,
required Duration timeout,
}) async {
return UnsignedMessage.create(
message: await createLib().createExternalMessage(
dst: dst,
contractAbi: contractAbi,
method: method,
input: jsonEncode(input),
publicKey: publicKey.publicKey,
timeout: timeout.inMilliseconds,
stateInit: stateInit,
),
);
}