encodeInternalMessage function

Future<String> encodeInternalMessage({
  1. required Address dst,
  2. required bool bounce,
  3. required BigInt amount,
  4. Address? src,
  5. String? stateInit,
  6. String? body,
  7. bool? bounced,
})

Returns base-64 encoded Message or throws error

Implementation

Future<String> encodeInternalMessage({
  required Address dst,
  required bool bounce,
  required BigInt amount,
  Address? src,
  String? stateInit,
  String? body,
  bool? bounced,
}) async {
  return createLib().encodeInternalMessage(
    dst: dst.address,
    src: src?.address,
    body: body,
    stateInit: stateInit,
    bounced: bounced,
    bounce: bounce,
    amount: amount.toString(),
  );
}