init method

Downloads debot smart contract (code and data) from blockchain and creates an instance of Debot Engine for it.

Remarks

It does not switch debot to context 0. Browser Callbacks are not called.

Implementation

Future<RegisteredDebot> init(
    ParamsOfInit params) async {
  final res = await _tonCore.request(
      'debot.init', params.toString());
  return RegisteredDebot.fromMap(res);
}