encode_internal_message method

Allows to encode deploy and function call messages.

Use cases include messages of any possible type:

  • deploy with initial function call (i.e. constructor or any other function that is used for some kind of initialization);
  • deploy without initial function call;
  • simple function call

There is an optional public key can be provided in deploy set in order to substitute one in TVM file.

Public key resolving priority:

  1. Public key from deploy set.
  2. Public key, specified in TVM file.

Implementation

Future<ResultOfEncodeInternalMessage> encode_internal_message(
    ParamsOfEncodeInternalMessage params) async {
  final res = await _tonCore.request(
      'abi.encode_internal_message', params.toString());
  return ResultOfEncodeInternalMessage.fromMap(res);
}