connect method

Future<void> connect(
  1. Map<String, dynamic> config
)

Initialize TonClient with provided config Should be always run before usage

Implementation

Future<void> connect(Map<String, dynamic> config) async {
  if (_utils != null) {
    throw ('Client core already connected! Use TonClient.disconnect to close connection!');
  }
  await _tonCore.connect(config);
  _utils = UtilsModule(_tonCore);
  _abi = AbiModule(_tonCore);
  _boc = BocModule(_tonCore);
  _crypto = CryptoModule(_tonCore);
  _processing = ProcessingModule(_tonCore);
  _tvm = TvmModule(_tonCore);
  _net = NetModule(_tonCore);
  _debot = DebotModule(_tonCore);
  _proofs = ProofsModule(_tonCore);
  _client = ClientModule(_tonCore);
}