start method

Future<void> start(
  1. ParamsOfStart params
)

Downloads debot smart contract from blockchain and switches it to context zero.

This function must be used by Debot Browser to start a dialog with debot. While the function is executing, several Browser Callbacks can be called, since the debot tries to display all actions from the context 0 to the user.

When the debot starts SDK registers BrowserCallbacks AppObject. Therefore when debote.remove is called the debot is being deleted and the callback is called with finish=true which indicates that it will never be used again.

Implementation

Future<void> start(ParamsOfStart params) async {
  await _tonCore.request('debot.start', params.toString());
}