{"id":348878,"date":"2023-06-15T21:01:46","date_gmt":"2023-06-15T21:01:46","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=348878"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2023-06-15T21:01:46","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=348878","title":{"rendered":"<span>\u041a\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044e \u0431\u043b\u043e\u043a\u0447\u0435\u0439\u043d\u0435 TON \u043d\u0430 DART \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u0448\u0435\u043b\u044c\u043a\u0430 \u0447\u0435\u0440\u0435\u0437 TON Connect<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<h3>\u0412\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435<\/h3>\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u0435\u0439 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e, \u043a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 <a href=\"https:\/\/pub.dev\/packages\/darttonconnect\" rel=\"noopener noreferrer nofollow\">darttonconnect<\/a> \u0434\u043b\u044f \u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0439 \u0434\u043b\u044f \u0431\u043b\u043e\u043a\u0447\u0435\u0439\u043d\u0430 TON. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043a\u0440\u043e\u0441\u0441\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u044b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430 Flutter \u0434\u043b\u044f \u0431\u043b\u043e\u043a\u0447\u0435\u0439\u043d\u0430 TON.<\/p>\n<h3>\u0417\u0430\u0447\u0435\u043c \u043d\u0443\u0436\u0435\u043d TON Connect?<\/h3>\n<p>\u0412 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0431\u043b\u043e\u043a\u0447\u0435\u0439\u043d \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445 \u0435\u0441\u0442\u044c \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u043a\u043e\u0448\u0435\u043b\u044c\u043a\u0430\u043c\u0438 \u0438 \u0434\u0435\u0446\u0435\u043d\u0442\u0440\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u043c\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c\u0438.<\/p>\n<p>\u041a\u043e\u0448\u0435\u043b\u044c\u043a\u0438 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0434\u043b\u044f \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u044f \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0439 \u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0433\u043e \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043a\u043b\u044e\u0447\u0435\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u043d\u0430 \u0438\u0445 \u043b\u0438\u0447\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u0445.<\/p>\n<p>\u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c \u0434\u043b\u044f \u0441\u043c\u0430\u0440\u0442-\u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u043e\u0432 \u0438 \u043d\u0435 \u0438\u043c\u0435\u044e\u0442 \u043f\u0440\u044f\u043c\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439. \u0414\u043b\u044f \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u0435\u043d\u0438\u044f \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438 \u0432 \u0441\u043c\u0430\u0440\u0442-\u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442, \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u0448\u0435\u043b\u044c\u043a\u0430 \u0438 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0442\u044c \u0432\u0441\u0435 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438, \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0432 \u043a\u043e\u0448\u0435\u043b\u044c\u043a\u0435.<\/p>\n<p>TON Connect \u044d\u0442\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0434\u043b\u044f \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043a\u043e\u0448\u0435\u043b\u044c\u043a\u043e\u0432 \u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0432 \u0431\u043b\u043e\u043a\u0447\u0435\u0439\u043d\u0435 TON. \u0412\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0438\u0434\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 \u043c\u043e\u0441\u0442. \u041a\u043e\u0448\u0435\u043b\u0435\u043a &#171;\u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442&#187; \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044e \u0447\u0435\u0440\u0435\u0437 SSE.<\/p>\n<p>\u0412 TON Connect \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043b\u044e\u0431\u043e\u0439 \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0432 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u043a\u043e\u0448\u0435\u043b\u0435\u043a, \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u044b \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u0435 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <a href=\"https:\/\/tonkeeper.com\/\" rel=\"noopener noreferrer nofollow\">Tonkeeper<\/a>.<\/p>\n<h3>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043a\u043e\u0448\u0435\u043b\u0435\u043a \u0438 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0435\u0433\u043e \u0432 \u0442\u0435\u0441\u0442\u043e\u0432\u0443\u044e \u0441\u0435\u0442\u044c<\/h3>\n<p>\u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f, \u043d\u0443\u0436\u0435\u043d \u043a\u043e\u0448\u0435\u043b\u0435\u043a \u043d\u0430 TON, \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 Tonkeeper: <a href=\"https:\/\/tonkeeper.com\/\" rel=\"noopener noreferrer nofollow\">https:\/\/tonkeeper.com\/<\/a><\/p>\n<p>\u0422\u0430\u043a \u043a\u0430\u043a \u043d\u0430\u043c \u043d\u0430\u0434\u043e \u0431\u0443\u0434\u0435\u0442 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438 \u0447\u0435\u0440\u0435\u0437 Tonkeeper, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0439\u0442\u0438 \u0432 Tonkeeper \u0438 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0435\u0433\u043e \u043d\u0430 \u0442\u0435\u0441\u0442\u043e\u0432\u0443\u044e \u0441\u0435\u0442\u044c, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e:<\/p>\n<ul>\n<li>\n<p>\u0437\u0430\u0445\u043e\u0434\u0438 \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0438 \u043b\u0438\u0441\u0442\u0430\u0435\u043c \u0432 \u0441\u0430\u043c\u044b\u0439 \u043d\u0438\u0437 \u0434\u043e \u043d\u0430\u0434\u043f\u0438\u0441\u0438 Tonkeeper \u0432\u0435\u0440\u0441\u0438\u0438 3.0<\/p>\n<\/li>\n<li>\n<p>\u0436\u043c\u0451\u043c 6 \u0440\u0430\u0437 \u043f\u043e\u0434\u0440\u044f\u0434 \u0431\u044b\u0441\u0442\u0440\u043e \u043d\u0430 \u0438\u043a\u043e\u043d\u043a\u0443 Tonkeeper \u043d\u0430\u0434 \u043d\u0430\u0434\u043f\u0438\u0441\u044c\u044e &#8212; \u043e\u0442\u043a\u0440\u043e\u0435\u0442\u0441\u044f \u043c\u0435\u043d\u044e \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432<\/p>\n<\/li>\n<li>\n<p>\u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u0442\u0435\u0441\u0442\u043e\u0432\u0443\u044e \u0441\u0435\u0442\u044c \u0432 \u043d\u0435\u043c<\/p>\n<\/li>\n<li>\n<p>\u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043d\u0430 \u043a\u043e\u0448\u0435\u043b\u0435\u043a \u0432 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0439 \u0441\u0435\u0442\u0438, \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0439 TON, \u043d\u0443\u0436\u043d\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0431\u043e\u0442\u043e\u043c: <a href=\"https:\/\/t.me\/testgiver_ton_bot\" rel=\"noopener noreferrer nofollow\">https:\/\/t.me\/testgiver_ton_bot<\/a><\/p>\n<\/li>\n<\/ul>\n<h3>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/h3>\n<p>\u0417\u0430\u0439\u0434\u0438\u0442\u0435 \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e, \u0433\u0434\u0435 \u0432\u044b \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439:<\/p>\n<pre><code>flutter create .  <\/code><\/pre>\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u0435 \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438:<\/p>\n<ul>\n<li>\n<p>qr_flutter \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f QR-\u043a\u043e\u0434\u0430<\/p>\n<\/li>\n<li>\n<p>darttonconnect \u0434\u043b\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043b\u043e\u0433\u0438\u043a\u0438 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u0447\u0435\u0440\u0435\u0437 TON Connect<\/p>\n<\/li>\n<\/ul>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u0438\u0445 \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c\u0438:<\/p>\n<pre><code>flutter pub add qr_flutter flutter pub add darttonconnect <\/code><\/pre>\n<h3>\u0421\u043e\u0431\u0435\u0440\u0435\u043c \u043a\u0430\u0440\u043a\u0430\u0441 \u043e\u0434\u043d\u043e\u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/h3>\n<p>\u0422\u0430\u043a \u043a\u0430\u043a \u0434\u0430\u043d\u043d\u044b\u0439 \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b \u043f\u0440\u043e \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438, \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043a\u0430\u0440\u043a\u0430\u0441\u0435 \u043e\u0434\u043d\u043e\u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0435 \u0431\u0443\u0434\u0435\u043c.<br \/> \u0421\u043a\u043e\u043f\u0438\u0440\u0443\u0439\u0442\u0435 \u043a\u043e\u0434 \u043d\u0438\u0436\u0435 \u0432 \u0444\u0430\u0439\u043b <code>main.dart<\/code>  :<\/p>\n<pre><code>import 'package:flutter\/material.dart';  import 'package:darttonconnect\/exceptions.dart'; import 'package:darttonconnect\/logger.dart'; import 'package:darttonconnect\/ton_connect.dart'; import 'package:qr_flutter\/qr_flutter.dart';  void main() {   runApp(const MyApp()); }  class MyApp extends StatelessWidget {   const MyApp({super.key});    @override   Widget build(BuildContext context) { return MaterialApp(   theme: ThemeData( elevatedButtonTheme: ElevatedButtonThemeData( style: ButtonStyle( fixedSize: MaterialStateProperty.all(const Size(200, 30)))), primarySwatch: Colors.blue,   ),   home: const MyHomePage(), );   } }  class MyHomePage extends StatefulWidget {   const MyHomePage({super.key});    @override   State&lt;MyHomePage> createState() => _MyHomePageState(); }  class _MyHomePageState extends State&lt;MyHomePage> {    } <\/code><\/pre>\n<h3>\u041f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a \u043b\u043e\u0433\u0438\u043a\u0435 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438<\/h3>\n<p>\u041d\u0430\u0448\u0435 \u043e\u0434\u043d\u043e\u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u0442\u044c \u0438\u0437 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0438 \u0442\u0440\u0435\u0445 \u043a\u043d\u043e\u043f\u043e\u043a:<\/p>\n<ul>\n<li>\n<p>Connect<\/p>\n<\/li>\n<li>\n<p>Disconnect<\/p>\n<\/li>\n<li>\n<p>Send transaction<\/p>\n<\/li>\n<\/ul>\n<p>\u041a\u0430\u0436\u0434\u0430\u044f \u0438\u0437 \u044d\u0442\u0438\u0445 \u043a\u043d\u043e\u043f\u043e\u043a \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e:<\/p>\n<ul>\n<li>\n<p>Connect &#8212; \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 QR \u043a\u043e\u0434\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0448\u0435\u043b\u044c\u043a\u043e\u043c \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438<\/p>\n<\/li>\n<li>\n<p>Disconnect &#8212; \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a\u043e\u0448\u0435\u043b\u044c\u043a\u0430 \u043e\u0442 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/p>\n<\/li>\n<li>\n<p>Send transaction &#8212; \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438<\/p>\n<\/li>\n<\/ul>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u043c \u043a\u043d\u043e\u043f\u043a\u0438 \u0438 \u0432\u044b\u0437\u043e\u0432\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u0439 (\u0434\u043b\u044f \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0434\u0438\u0437\u0430\u0439\u043d\u0430 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f material design \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430):<\/p>\n<pre><code>import 'package:flutter\/material.dart';  import 'package:darttonconnect\/exceptions.dart'; import 'package:darttonconnect\/logger.dart'; import 'package:darttonconnect\/ton_connect.dart'; import 'package:qr_flutter\/qr_flutter.dart';  void main() {   runApp(const MyApp()); }  class MyApp extends StatelessWidget {   const MyApp({super.key});    @override   Widget build(BuildContext context) { return MaterialApp(   theme: ThemeData( elevatedButtonTheme: ElevatedButtonThemeData( style: ButtonStyle( fixedSize: MaterialStateProperty.all(const Size(200, 30)))), primarySwatch: Colors.blue,   ),   home: const MyHomePage(), );   } }  class MyHomePage extends StatefulWidget {   const MyHomePage({super.key});    @override   State&lt;MyHomePage> createState() => _MyHomePageState(); }  class _MyHomePageState extends State&lt;MyHomePage> {    @override   Widget build(BuildContext context) { return Scaffold( body: Center(   child: SingleChildScrollView( child: Column(   mainAxisAlignment: MainAxisAlignment.center,   children: &lt;Widget>[ ElevatedButton( onPressed: initialConnect, child: const Text('Create initial connect')), const SizedBox(height: 15), ElevatedButton( onPressed: disconnect, child: const Text('Disconnect')), const SizedBox(height: 15), ElevatedButton(onPressed: sendTrx, child: const Text('Sendtxes')), const SizedBox(height: 15), if (universalLink != null)   QrImageView( data: universalLink!, version: QrVersions.auto, size: 320, gapless: false,   )   ], ),   ), ));   } } <\/code><\/pre>\n<h4>\u041c\u0430\u043d\u0438\u0444\u0435\u0441\u0442<\/h4>\n<p>\u0414\u043b\u044f \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u0447\u0435\u0440\u0435\u0437 TONConnect \u043d\u0443\u0436\u0435\u043d \u0444\u0430\u0439\u043b \u043c\u0430\u043d\u0438\u0444\u0435\u0441\u0442, \u0432 \u043d\u0435\u043c \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f:<\/p>\n<ul>\n<li>\n<p>url \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\/\u0441\u0430\u0439\u0442\u0430 \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f \u0434\u0435\u0446\u0435\u043d\u0442\u0440\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e\u0441\u043b\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043d\u0430 \u0435\u0433\u043e \u0437\u043d\u0430\u0447\u043e\u043a \u0432 \u043a\u043e\u0448\u0435\u043b\u044c\u043a\u0435.<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0432\u0435\u0431-\u0441\u0430\u0439\u0442\u0430\/\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/p>\n<\/li>\n<li>\n<p>\u0418\u043a\u043e\u043d\u043a\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0438 \u0438\u043a\u043e\u043d\u043a\u0430 \u043d\u0443\u0436\u043d\u044b, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0432 \u043a\u043e\u0448\u0435\u043b\u044c\u043a\u0435, \u043f\u043e\u043d\u0438\u043c\u0430\u043b \u043a \u0447\u0435\u043c\u0443 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f.<\/p>\n<p>\u0412 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u043c\u0430\u043d\u0438\u0444\u0435\u0441\u0442, \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0439 Github gist \u0432\u043e\u0442: <a href=\"https:\/\/gist.githubusercontent.com\/romanovichim\/e81d599a6f3798bb9f74ab1970a8b376\/raw\/5f933bd5d24f5979b64ae88421e7849dd144efc1\/gistfiletest.txt\" rel=\"noopener noreferrer nofollow\">https:\/\/gist.githubusercontent.com\/romanovichim\/e81d599a6f3798bb9f74ab1970a8b376\/raw\/5f933bd5d24f5979b64ae88421e7849dd144efc1\/gistfiletest.txt<\/a><\/p>\n<h4>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h4>\n<p>\u041f\u0435\u0440\u0432\u043e\u0435 \u0447\u0442\u043e, \u043d\u0430\u0434\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c <code>connector<\/code>, \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442\u044c \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435. \u0412 \u043a\u043e\u043d\u043d\u0435\u043a\u0442\u043e\u0440\u0435 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u043d\u0430\u0448\u0438\u043c \u043c\u0430\u043d\u0438\u0444\u0435\u0441\u0442\u043e\u043c.<\/p>\n<pre><code>  \/\/ Initialize TonConnect.   final TonConnect connector = TonConnect( 'https:\/\/gist.githubusercontent.com\/romanovichim\/e81d599a6f3798bb9f74ab1970a8b376\/raw\/43e00b0abc824ef272ac6d0f8083d21456602adf\/gistfiletest.txt'); <\/code><\/pre>\n<p>\u0412 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 TonConnect \u043c\u043e\u0436\u043d\u043e \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043b\u044e\u0431\u044b\u043c \u043a\u043e\u0448\u0435\u043b\u044c\u043a\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d \u043a \u0441\u0438\u0441\u0442\u0435\u043c\u0435 TonConnect, \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u0442 \u0442\u0430\u043a:<\/p>\n<pre><code>final List wallets = await connector.getWallets(); <\/code><\/pre>\n<p>\u0422\u0430\u043a \u043a\u0430\u043a \u044d\u0442\u043e \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u043d\u044b\u0439 \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b, \u0442\u043e \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e Tonkeeper&#8217;\u043e\u043c<br \/> \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0438 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u0441\u0441\u044b\u043b\u043a\u0443 \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438.<\/p>\n<pre><code>  \/\/ Initialize TonConnect.   final TonConnect connector = TonConnect(   'https:\/\/gist.githubusercontent.com\/romanovichim\/e81d599a6f3798bb9f74ab1970a8b376\/raw\/43e00b0abc824ef272ac6d0f8083d21456602adf\/gistfiletest.txt');   Map&lt;String, String>? walletConnectionSource;   String? universalLink;   \/\/\/ Create connection and generate QR code to connect a wallet.   void initialConnect() async { const walletConnectionSource = {   \"universalUrl\": 'https:\/\/app.tonkeeper.com\/ton-connect',   \"bridgeUrl\": 'https:\/\/bridge.tonapi.io\/bridge' };  final universalLink = await connector.connect(walletConnectionSource); updateQRCode(universalLink);  connector.onStatusChange((walletInfo) {   logger.i('\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f'); });   } <\/code><\/pre>\n<p>\u041a\u0430\u043a \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0438\u0434\u0435\u0442\u044c \u0432\u043d\u0438\u0437\u0443 \u043a\u043e\u0434\u0430, \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f, \u043a\u043e\u043d\u043d\u0435\u043a\u0442\u043e\u0440 \u043f\u0440\u043e\u043a\u0438\u043d\u0435\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043a\u043e\u0448\u0435\u043b\u044c\u043a\u0435 (\u0422\u043e \u0435\u0441\u0442\u044c \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0443\u0435\u043c\u0441\u044f, \u043c\u044b \u0441\u043c\u043e\u0436\u0435\u043c \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043a\u043e\u0448\u0435\u043b\u044c\u043a\u0435). \u042d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u043e \u043f\u0440\u0438 \u043e\u0442\u043b\u0430\u0434\u043a\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043c\u043e\u0436\u043d\u043e \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u0436\u0434\u043e\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435.<\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u0441\u0441\u044b\u043b\u043a\u043e\u0439 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0443\u0434\u043e\u0431\u043d\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0441 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430, \u0434\u043e\u0431\u0430\u0432\u0438\u043c QR \u043a\u043e\u0434:<\/p>\n<pre><code>  void updateQRCode(String newData) { setState(() => universalLink = newData);   } <\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u0435\u0439\u0447\u0430\u0441 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0442\u043e \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0443\u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c, \u043d\u043e \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u043c\u044b \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u0438 \u0432\u044b\u0448\u043b\u0438 \u0441 \u0441\u0430\u0439\u0442\u0430, \u0430 \u043f\u043e\u0442\u043e\u043c \u0432\u0435\u0440\u043d\u0443\u043b\u0430\u0441\u044c, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0440\u0435\u043a\u043e\u043d\u043d\u0435\u043a\u0442:<\/p>\n<pre><code>  @override   void initState() { \/\/ Override default initState method to call restoreConnection \/\/ method after screen reloading. super.initState(); WidgetsBinding.instance.addPostFrameCallback((_) {   if (!connector.connected) { restoreConnection();   } });   }    \/\/\/ Restore connection from memory.   void restoreConnection() { connector.restoreConnection();   } <\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0434\u0438\u0441\u043a\u043e\u043d\u043d\u0435\u043a\u0442\u0430:<\/p>\n<pre><code>  \/\/\/ Disconnect from current wallet.   void disconnect() { if (connector.connected) {   connector.disconnect(); } else {   logger.i(\"\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043a\u043e\u043d\u043d\u0435\u043a\u0442, \u043f\u043e\u0442\u043e\u043c \u0434\u0438\u0441\u043a\u043e\u043d\u0435\u043a\u0442\"); }   } <\/code><\/pre>\n<p>\u041f\u0440\u0438 \u0434\u0438\u0441\u043a\u043e\u043d\u043d\u0435\u043a\u0442\u0435 \u043c\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d \u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0438 \u043f\u043e\u0442\u043e\u043c \u0434\u0438\u0441\u043a\u043e\u043d\u0435\u043a\u0442\u0438\u043c\u0441\u044f. \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0443 \u0442\u0440\u0430\u043d\u0430\u0437\u0430\u043a\u0446\u0438\u0438, \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <code>sendTrx()<\/code>. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0441\u0440\u0430\u0437\u0443 \u0437\u0430 \u0445\u0430\u0440\u0434\u043a\u043e\u0436\u0435\u043d\u044b \u0432\u0441\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u0438\u0442\u043e\u0433\u043e\u0432\u044b\u0439 \u043a\u043e\u0434:<\/p>\n<pre><code> \/\/\/ Send transaction with specified data.   void sendTrx() async { if (!connector.connected) {   logger.i(\"\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043a\u043e\u043d\u043d\u0435\u043a\u0442, \u043f\u043e\u0442\u043e\u043c \u0434\u0438\u0441\u043a\u043e\u043d\u0435\u043a\u0442\"); } else {   const transaction = { \"validUntil\": 1918097354, \"messages\": [   { \"address\": \"0:575af9fc97311a11f423a1926e7fa17a93565babfd65fe39d2e58b8ccb38c911\", \"amount\": \"20000000\",   } ]   };    try { await connector.sendTransaction(transaction);   } catch (e) { if (e is UserRejectsError) {   logger.d(   'You rejected the transaction. Please confirm it to send to the blockchain'); } else {   logger.d('Unknown error happened $e'); }   } }   } <\/code><\/pre>\n<h3>\u0418\u0442\u043e\u0433\u043e\u0432\u044b\u0439 \u043a\u043e\u0434<\/h3>\n<pre><code>import 'package:flutter\/material.dart';  import 'package:darttonconnect\/exceptions.dart'; import 'package:darttonconnect\/logger.dart'; import 'package:darttonconnect\/ton_connect.dart'; import 'package:qr_flutter\/qr_flutter.dart';  void main() {   runApp(const MyApp()); }  class MyApp extends StatelessWidget {   const MyApp({super.key});    @override   Widget build(BuildContext context) { return MaterialApp(   theme: ThemeData( elevatedButtonTheme: ElevatedButtonThemeData( style: ButtonStyle( fixedSize: MaterialStateProperty.all(const Size(200, 30)))), primarySwatch: Colors.blue,   ),   home: const MyHomePage(), );   } }  class MyHomePage extends StatefulWidget {   const MyHomePage({super.key});    @override   State&lt;MyHomePage> createState() => _MyHomePageState(); }  class _MyHomePageState extends State&lt;MyHomePage> {   \/\/ Initialize TonConnect.   final TonConnect connector = TonConnect(   'https:\/\/gist.githubusercontent.com\/romanovichim\/e81d599a6f3798bb9f74ab1970a8b376\/raw\/43e00b0abc824ef272ac6d0f8083d21456602adf\/gistfiletest.txt');   Map&lt;String, String>? walletConnectionSource;   String? universalLink;    @override   void initState() { \/\/ Override default initState method to call restoreConnection \/\/ method after screen reloading. super.initState(); WidgetsBinding.instance.addPostFrameCallback((_) {   if (!connector.connected) { restoreConnection();   } });   }    \/\/\/ Create connection and generate QR code to connect a wallet.   void initialConnect() async { const walletConnectionSource = {   \"universalUrl\": 'https:\/\/app.tonkeeper.com\/ton-connect',   \"bridgeUrl\": 'https:\/\/bridge.tonapi.io\/bridge' };  final universalLink = await connector.connect(walletConnectionSource); updateQRCode(universalLink);  connector.onStatusChange((walletInfo) {   logger.i('\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f'); });   }    \/\/\/ Restore connection from memory.   void restoreConnection() { connector.restoreConnection();   }    void updateQRCode(String newData) { setState(() => universalLink = newData);   }    \/\/\/ Disconnect from current wallet.   void disconnect() { if (connector.connected) {   connector.disconnect(); } else {   logger.i(\"\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043a\u043e\u043d\u043d\u0435\u043a\u0442, \u043f\u043e\u0442\u043e\u043c \u0434\u0438\u0441\u043a\u043e\u043d\u0435\u043a\u0442\"); }   }    \/\/\/ Send transaction with specified data.   void sendTrx() async { if (!connector.connected) {   logger.i(\"\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043a\u043e\u043d\u043d\u0435\u043a\u0442, \u043f\u043e\u0442\u043e\u043c \u0434\u0438\u0441\u043a\u043e\u043d\u0435\u043a\u0442\"); } else {   const transaction = { \"validUntil\": 1918097354, \"messages\": [   { \"address\": \"0:575af9fc97311a11f423a1926e7fa17a93565babfd65fe39d2e58b8ccb38c911\", \"amount\": \"20000000\",   } ]   };    try { await connector.sendTransaction(transaction);   } catch (e) { if (e is UserRejectsError) {   logger.d(   'You rejected the transaction. Please confirm it to send to the blockchain'); } else {   logger.d('Unknown error happened $e'); }   } }   }    @override   Widget build(BuildContext context) { return Scaffold( body: Center(   child: SingleChildScrollView( child: Column(   mainAxisAlignment: MainAxisAlignment.center,   children: &lt;Widget>[ ElevatedButton( onPressed: initialConnect, child: const Text('Create initial connect')), const SizedBox(height: 15), ElevatedButton( onPressed: disconnect, child: const Text('Disconnect')), const SizedBox(height: 15), ElevatedButton(onPressed: sendTrx, child: const Text('Sendtxes')), const SizedBox(height: 15), if (universalLink != null)   QrImageView( data: universalLink!, version: QrVersions.auto, size: 320, gapless: false,   )   ], ),   ), ));   } } <\/code><\/pre>\n<h3>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h3>\n<p>\u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, <a href=\"https:\/\/pub.dev\/packages\/darttonconnect\" rel=\"noopener noreferrer nofollow\">\u0441\u0441\u044b\u043b\u043a\u0430<\/a> \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440 \u0438\u0437 \u0441\u0442\u0430\u0442\u044c\u0438, <a href=\"https:\/\/github.com\/romanovichim\/dartExampleForTONConnect\" rel=\"noopener noreferrer nofollow\">\u0441\u0441\u044b\u043b\u043a\u0430<\/a> \u043d\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443. \u041f\u043e\u0434\u043e\u0431\u043d\u044b\u0435 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 \u044f \u043f\u0438\u0448\u0443 \u0432 <a href=\"https:\/\/t.me\/ton_learn\" rel=\"noopener noreferrer nofollow\">https:\/\/t.me\/ton_learn<\/a> . \u0411\u0443\u0434\u0443 \u0440\u0430\u0434 \u0432\u0430\u0448\u0435\u0439 \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0435.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p> <!----> <!----><\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/742036\/\"> https:\/\/habr.com\/ru\/articles\/742036\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<h3>\u0412\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435<\/h3>\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u0435\u0439 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e, \u043a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 <a href=\"https:\/\/pub.dev\/packages\/darttonconnect\" rel=\"noopener noreferrer nofollow\">darttonconnect<\/a> \u0434\u043b\u044f \u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0439 \u0434\u043b\u044f \u0431\u043b\u043e\u043a\u0447\u0435\u0439\u043d\u0430 TON. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043a\u0440\u043e\u0441\u0441\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u044b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430 Flutter \u0434\u043b\u044f \u0431\u043b\u043e\u043a\u0447\u0435\u0439\u043d\u0430 TON.<\/p>\n<h3>\u0417\u0430\u0447\u0435\u043c \u043d\u0443\u0436\u0435\u043d TON Connect?<\/h3>\n<p>\u0412 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0431\u043b\u043e\u043a\u0447\u0435\u0439\u043d \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445 \u0435\u0441\u0442\u044c \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u043a\u043e\u0448\u0435\u043b\u044c\u043a\u0430\u043c\u0438 \u0438 \u0434\u0435\u0446\u0435\u043d\u0442\u0440\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u043c\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c\u0438.<\/p>\n<p>\u041a\u043e\u0448\u0435\u043b\u044c\u043a\u0438 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0434\u043b\u044f \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u044f \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0439 \u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0433\u043e \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043a\u043b\u044e\u0447\u0435\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u043d\u0430 \u0438\u0445 \u043b\u0438\u0447\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u0445.<\/p>\n<p>\u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c \u0434\u043b\u044f \u0441\u043c\u0430\u0440\u0442-\u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u043e\u0432 \u0438 \u043d\u0435 \u0438\u043c\u0435\u044e\u0442 \u043f\u0440\u044f\u043c\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439. \u0414\u043b\u044f \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u0435\u043d\u0438\u044f \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438 \u0432 \u0441\u043c\u0430\u0440\u0442-\u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442, \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u0448\u0435\u043b\u044c\u043a\u0430 \u0438 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0442\u044c \u0432\u0441\u0435 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438, \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0432 \u043a\u043e\u0448\u0435\u043b\u044c\u043a\u0435.<\/p>\n<p>TON Connect \u044d\u0442\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0434\u043b\u044f \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043a\u043e\u0448\u0435\u043b\u044c\u043a\u043e\u0432 \u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0432 \u0431\u043b\u043e\u043a\u0447\u0435\u0439\u043d\u0435 TON. \u0412\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0438\u0434\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 \u043c\u043e\u0441\u0442. \u041a\u043e\u0448\u0435\u043b\u0435\u043a &#171;\u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442&#187; \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044e \u0447\u0435\u0440\u0435\u0437 SSE.<\/p>\n<p>\u0412 TON Connect \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043b\u044e\u0431\u043e\u0439 \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0432 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u043a\u043e\u0448\u0435\u043b\u0435\u043a, \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u044b \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u0435 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <a href=\"https:\/\/tonkeeper.com\/\" rel=\"noopener noreferrer nofollow\">Tonkeeper<\/a>.<\/p>\n<h3>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043a\u043e\u0448\u0435\u043b\u0435\u043a \u0438 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0435\u0433\u043e \u0432 \u0442\u0435\u0441\u0442\u043e\u0432\u0443\u044e \u0441\u0435\u0442\u044c<\/h3>\n<p>\u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f, \u043d\u0443\u0436\u0435\u043d \u043a\u043e\u0448\u0435\u043b\u0435\u043a \u043d\u0430 TON, \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 Tonkeeper: <a href=\"https:\/\/tonkeeper.com\/\" rel=\"noopener noreferrer nofollow\">https:\/\/tonkeeper.com\/<\/a><\/p>\n<p>\u0422\u0430\u043a \u043a\u0430\u043a \u043d\u0430\u043c \u043d\u0430\u0434\u043e \u0431\u0443\u0434\u0435\u0442 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438 \u0447\u0435\u0440\u0435\u0437 Tonkeeper, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0439\u0442\u0438 \u0432 Tonkeeper \u0438 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0435\u0433\u043e \u043d\u0430 \u0442\u0435\u0441\u0442\u043e\u0432\u0443\u044e \u0441\u0435\u0442\u044c, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e:<\/p>\n<ul>\n<li>\n<p>\u0437\u0430\u0445\u043e\u0434\u0438 \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0438 \u043b\u0438\u0441\u0442\u0430\u0435\u043c \u0432 \u0441\u0430\u043c\u044b\u0439 \u043d\u0438\u0437 \u0434\u043e \u043d\u0430\u0434\u043f\u0438\u0441\u0438 Tonkeeper \u0432\u0435\u0440\u0441\u0438\u0438 3.0<\/p>\n<\/li>\n<li>\n<p>\u0436\u043c\u0451\u043c 6 \u0440\u0430\u0437 \u043f\u043e\u0434\u0440\u044f\u0434 \u0431\u044b\u0441\u0442\u0440\u043e \u043d\u0430 \u0438\u043a\u043e\u043d\u043a\u0443 Tonkeeper \u043d\u0430\u0434 \u043d\u0430\u0434\u043f\u0438\u0441\u044c\u044e &#8212; \u043e\u0442\u043a\u0440\u043e\u0435\u0442\u0441\u044f \u043c\u0435\u043d\u044e \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432<\/p>\n<\/li>\n<li>\n<p>\u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u0442\u0435\u0441\u0442\u043e\u0432\u0443\u044e \u0441\u0435\u0442\u044c \u0432 \u043d\u0435\u043c<\/p>\n<\/li>\n<li>\n<p>\u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043d\u0430 \u043a\u043e\u0448\u0435\u043b\u0435\u043a \u0432 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0439 \u0441\u0435\u0442\u0438, \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0439 TON, \u043d\u0443\u0436\u043d\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0431\u043e\u0442\u043e\u043c: <a href=\"https:\/\/t.me\/testgiver_ton_bot\" rel=\"noopener noreferrer nofollow\">https:\/\/t.me\/testgiver_ton_bot<\/a><\/p>\n<\/li>\n<\/ul>\n<h3>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/h3>\n<p>\u0417\u0430\u0439\u0434\u0438\u0442\u0435 \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e, \u0433\u0434\u0435 \u0432\u044b \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439:<\/p>\n<pre><code>flutter create .  <\/code><\/pre>\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u0435 \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438:<\/p>\n<ul>\n<li>\n<p>qr_flutter \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f QR-\u043a\u043e\u0434\u0430<\/p>\n<\/li>\n<li>\n<p>darttonconnect \u0434\u043b\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043b\u043e\u0433\u0438\u043a\u0438 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u0447\u0435\u0440\u0435\u0437 TON Connect<\/p>\n<\/li>\n<\/ul>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u0438\u0445 \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c\u0438:<\/p>\n<pre><code>flutter pub add qr_flutter flutter pub add darttonconnect <\/code><\/pre>\n<h3>\u0421\u043e\u0431\u0435\u0440\u0435\u043c \u043a\u0430\u0440\u043a\u0430\u0441 \u043e\u0434\u043d\u043e\u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/h3>\n<p>\u0422\u0430\u043a \u043a\u0430\u043a \u0434\u0430\u043d\u043d\u044b\u0439 \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b \u043f\u0440\u043e \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438, \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043a\u0430\u0440\u043a\u0430\u0441\u0435 \u043e\u0434\u043d\u043e\u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0435 \u0431\u0443\u0434\u0435\u043c.<br \/> \u0421\u043a\u043e\u043f\u0438\u0440\u0443\u0439\u0442\u0435 \u043a\u043e\u0434 \u043d\u0438\u0436\u0435 \u0432 \u0444\u0430\u0439\u043b <code>main.dart<\/code>  :<\/p>\n<pre><code>import 'package:flutter\/material.dart';  import 'package:darttonconnect\/exceptions.dart'; import 'package:darttonconnect\/logger.dart'; import 'package:darttonconnect\/ton_connect.dart'; import 'package:qr_flutter\/qr_flutter.dart';  void main() {   runApp(const MyApp()); }  class MyApp extends StatelessWidget {   const MyApp({super.key});    @override   Widget build(BuildContext context) { return MaterialApp(   theme: ThemeData( elevatedButtonTheme: ElevatedButtonThemeData( style: ButtonStyle( fixedSize: MaterialStateProperty.all(const Size(200, 30)))), primarySwatch: Colors.blue,   ),   home: const MyHomePage(), );   } }  class MyHomePage extends StatefulWidget {   const MyHomePage({super.key});    @override   State&lt;MyHomePage> createState() => _MyHomePageState(); }  class _MyHomePageState extends State&lt;MyHomePage> {    } <\/code><\/pre>\n<h3>\u041f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a \u043b\u043e\u0433\u0438\u043a\u0435 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438<\/h3>\n<p>\u041d\u0430\u0448\u0435 \u043e\u0434\u043d\u043e\u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u0442\u044c \u0438\u0437 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0438 \u0442\u0440\u0435\u0445 \u043a\u043d\u043e\u043f\u043e\u043a:<\/p>\n<ul>\n<li>\n<p>Connect<\/p>\n<\/li>\n<li>\n<p>Disconnect<\/p>\n<\/li>\n<li>\n<p>Send transaction<\/p>\n<\/li>\n<\/ul>\n<p>\u041a\u0430\u0436\u0434\u0430\u044f \u0438\u0437 \u044d\u0442\u0438\u0445 \u043a\u043d\u043e\u043f\u043e\u043a \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e:<\/p>\n<ul>\n<li>\n<p>Connect &#8212; \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 QR \u043a\u043e\u0434\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0448\u0435\u043b\u044c\u043a\u043e\u043c \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438<\/p>\n<\/li>\n<li>\n<p>Disconnect &#8212; \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a\u043e\u0448\u0435\u043b\u044c\u043a\u0430 \u043e\u0442 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/p>\n<\/li>\n<li>\n<p>Send transaction &#8212; \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438<\/p>\n<\/li>\n<\/ul>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u043c \u043a\u043d\u043e\u043f\u043a\u0438 \u0438 \u0432\u044b\u0437\u043e\u0432\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u0439 (\u0434\u043b\u044f \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0434\u0438\u0437\u0430\u0439\u043d\u0430 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f material design \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430):<\/p>\n<pre><code>import 'package:flutter\/material.dart';  import 'package:darttonconnect\/exceptions.dart'; import 'package:darttonconnect\/logger.dart'; import 'package:darttonconnect\/ton_connect.dart'; import 'package:qr_flutter\/qr_flutter.dart';  void main() {   runApp(const MyApp()); }  class MyApp extends StatelessWidget {   const MyApp({super.key});    @override   Widget build(BuildContext context) { return MaterialApp(   theme: ThemeData( elevatedButtonTheme: ElevatedButtonThemeData( style: ButtonStyle( fixedSize: MaterialStateProperty.all(const Size(200, 30)))), primarySwatch: Colors.blue,   ),   home: const MyHomePage(), );   } }  class MyHomePage extends StatefulWidget {   const MyHomePage({super.key});    @override   State&lt;MyHomePage> createState() => _MyHomePageState(); }  class _MyHomePageState extends State&lt;MyHomePage> {    @override   Widget build(BuildContext context) { return Scaffold( body: Center(   child: SingleChildScrollView( child: Column(   mainAxisAlignment: MainAxisAlignment.center,   children: &lt;Widget>[ ElevatedButton( onPressed: initialConnect, child: const Text('Create initial connect')), const SizedBox(height: 15), ElevatedButton( onPressed: disconnect, child: const Text('Disconnect')), const SizedBox(height: 15), ElevatedButton(onPressed: sendTrx, child: const Text('Sendtxes')), const SizedBox(height: 15), if (universalLink != null)   QrImageView( data: universalLink!, version: QrVersions.auto, size: 320, gapless: false,   )   ], ),   ), ));   } } <\/code><\/pre>\n<h4>\u041c\u0430\u043d\u0438\u0444\u0435\u0441\u0442<\/h4>\n<p>\u0414\u043b\u044f \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u0447\u0435\u0440\u0435\u0437 TONConnect \u043d\u0443\u0436\u0435\u043d \u0444\u0430\u0439\u043b \u043c\u0430\u043d\u0438\u0444\u0435\u0441\u0442, \u0432 \u043d\u0435\u043c \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f:<\/p>\n<ul>\n<li>\n<p>url \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\/\u0441\u0430\u0439\u0442\u0430 \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f \u0434\u0435\u0446\u0435\u043d\u0442\u0440\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e\u0441\u043b\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043d\u0430 \u0435\u0433\u043e \u0437\u043d\u0430\u0447\u043e\u043a \u0432 \u043a\u043e\u0448\u0435\u043b\u044c\u043a\u0435.<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0432\u0435\u0431-\u0441\u0430\u0439\u0442\u0430\/\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/p>\n<\/li>\n<li>\n<p>\u0418\u043a\u043e\u043d\u043a\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0438 \u0438\u043a\u043e\u043d\u043a\u0430 \u043d\u0443\u0436\u043d\u044b, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0432 \u043a\u043e\u0448\u0435\u043b\u044c\u043a\u0435, \u043f\u043e\u043d\u0438\u043c\u0430\u043b \u043a \u0447\u0435\u043c\u0443 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f.<\/p>\n<p>\u0412 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u043c\u0430\u043d\u0438\u0444\u0435\u0441\u0442, \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0439 Github gist \u0432\u043e\u0442: <a href=\"https:\/\/gist.githubusercontent.com\/romanovichim\/e81d599a6f3798bb9f74ab1970a8b376\/raw\/5f933bd5d24f5979b64ae88421e7849dd144efc1\/gistfiletest.txt\" rel=\"noopener noreferrer nofollow\">https:\/\/gist.githubusercontent.com\/romanovichim\/e81d599a6f3798bb9f74ab1970a8b376\/raw\/5f933bd5d24f5979b64ae88421e7849dd144efc1\/gistfiletest.txt<\/a><\/p>\n<h4>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h4>\n<p>\u041f\u0435\u0440\u0432\u043e\u0435 \u0447\u0442\u043e, \u043d\u0430\u0434\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c <code>connector<\/code>, \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442\u044c \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435. \u0412 \u043a\u043e\u043d\u043d\u0435\u043a\u0442\u043e\u0440\u0435 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u043d\u0430\u0448\u0438\u043c \u043c\u0430\u043d\u0438\u0444\u0435\u0441\u0442\u043e\u043c.<\/p>\n<pre><code>  \/\/ Initialize TonConnect.   final TonConnect connector = TonConnect( 'https:\/\/gist.githubusercontent.com\/romanovichim\/e81d599a6f3798bb9f74ab1970a8b376\/raw\/43e00b0abc824ef272ac6d0f8083d21456602adf\/gistfiletest.txt'); <\/code><\/pre>\n<p>\u0412 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 TonConnect \u043c\u043e\u0436\u043d\u043e \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043b\u044e\u0431\u044b\u043c \u043a\u043e\u0448\u0435\u043b\u044c\u043a\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d \u043a \u0441\u0438\u0441\u0442\u0435\u043c\u0435 TonConnect, \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u0442 \u0442\u0430\u043a:<\/p>\n<pre><code>final List wallets = await connector.getWallets(); <\/code><\/pre>\n<p>\u0422\u0430\u043a \u043a\u0430\u043a \u044d\u0442\u043e \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u043d\u044b\u0439 \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b, \u0442\u043e \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e Tonkeeper&#8217;\u043e\u043c<br \/> \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0438 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u0441\u0441\u044b\u043b\u043a\u0443 \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438.<\/p>\n<pre><code>  \/\/ Initialize TonConnect.   final TonConnect connector = TonConnect(   'https:\/\/gist.githubusercontent.com\/romanovichim\/e81d599a6f3798bb9f74ab1970a8b376\/raw\/43e00b0abc824ef272ac6d0f8083d21456602adf\/gistfiletest.txt');   Map&lt;String, String>? walletConnectionSource;   String? universalLink;   \/\/\/ Create connection and generate QR code to connect a wallet.   void initialConnect() async { const walletConnectionSource = {   \"universalUrl\": 'https:\/\/app.tonkeeper.com\/ton-connect',   \"bridgeUrl\": 'https:\/\/bridge.tonapi.io\/bridge' };  final universalLink = await connector.connect(walletConnectionSource); updateQRCode(universalLink);  connector.onStatusChange((walletInfo) {   logger.i('\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f'); });   } <\/code><\/pre>\n<p>\u041a\u0430\u043a \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0438\u0434\u0435\u0442\u044c \u0432\u043d\u0438\u0437\u0443 \u043a\u043e\u0434\u0430, \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f, \u043a\u043e\u043d\u043d\u0435\u043a\u0442\u043e\u0440 \u043f\u0440\u043e\u043a\u0438\u043d\u0435\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043a\u043e\u0448\u0435\u043b\u044c\u043a\u0435 (\u0422\u043e \u0435\u0441\u0442\u044c \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0443\u0435\u043c\u0441\u044f, \u043c\u044b \u0441\u043c\u043e\u0436\u0435\u043c \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043a\u043e\u0448\u0435\u043b\u044c\u043a\u0435). \u042d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u043e \u043f\u0440\u0438 \u043e\u0442\u043b\u0430\u0434\u043a\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043c\u043e\u0436\u043d\u043e \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u0436\u0434\u043e\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435.<\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u0441\u0441\u044b\u043b\u043a\u043e\u0439 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0443\u0434\u043e\u0431\u043d\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0441 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430, \u0434\u043e\u0431\u0430\u0432\u0438\u043c QR \u043a\u043e\u0434:<\/p>\n<pre><code>  void updateQRCode(String newData) { setState(() => universalLink = newData);   } <\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u0435\u0439\u0447\u0430\u0441 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0442\u043e \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0443\u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c, \u043d\u043e \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u043c\u044b \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u0438 \u0432\u044b\u0448\u043b\u0438 \u0441 \u0441\u0430\u0439\u0442\u0430, \u0430 \u043f\u043e\u0442\u043e\u043c \u0432\u0435\u0440\u043d\u0443\u043b\u0430\u0441\u044c, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0440\u0435\u043a\u043e\u043d\u043d\u0435\u043a\u0442:<\/p>\n<pre><code>  @override   void initState() { \/\/ Override default initState method to call restoreConnection \/\/ method after screen reloading. super.initState(); WidgetsBinding.instance.addPostFrameCallback((_) {   if (!connector.connected) { restoreConnection();   } });   }    \/\/\/ Restore connection from memory.   void restoreConnection() { connector.restoreConnection();   } <\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0434\u0438\u0441\u043a\u043e\u043d\u043d\u0435\u043a\u0442\u0430:<\/p>\n<pre><code>  \/\/\/ Disconnect from current wallet.   void disconnect() { if (connector.connected) {   connector.disconnect(); } else {   logger.i(\"\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043a\u043e\u043d\u043d\u0435\u043a\u0442, \u043f\u043e\u0442\u043e\u043c \u0434\u0438\u0441\u043a\u043e\u043d\u0435\u043a\u0442\"); }   } <\/code><\/pre>\n<p>\u041f\u0440\u0438 \u0434\u0438\u0441\u043a\u043e\u043d\u043d\u0435\u043a\u0442\u0435 \u043c\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d \u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0438 \u043f\u043e\u0442\u043e\u043c \u0434\u0438\u0441\u043a\u043e\u043d\u0435\u043a\u0442\u0438\u043c\u0441\u044f. \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0443 \u0442\u0440\u0430\u043d\u0430\u0437\u0430\u043a\u0446\u0438\u0438, \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <code>sendTrx()<\/code>. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0441\u0440\u0430\u0437\u0443 \u0437\u0430 \u0445\u0430\u0440\u0434\u043a\u043e\u0436\u0435\u043d\u044b \u0432\u0441\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u0438\u0442\u043e\u0433\u043e\u0432\u044b\u0439 \u043a\u043e\u0434:<\/p>\n<pre><code> \/\/\/ Send transaction with specified data.   void sendTrx() async { if (!connector.connected) {   logger.i(\"\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043a\u043e\u043d\u043d\u0435\u043a\u0442, \u043f\u043e\u0442\u043e\u043c \u0434\u0438\u0441\u043a\u043e\u043d\u0435\u043a\u0442\"); } else {   const transaction = { \"validUntil\": 1918097354, \"messages\": [   { \"address\": \"0:575af9fc97311a11f423a1926e7fa17a93565babfd65fe39d2e58b8ccb38c911\", \"amount\": \"20000000\",   } ]   };    try { await connector.sendTransaction(transaction);   } catch (e) { if (e is UserRejectsError) {   logger.d(   'You rejected the transaction. Please confirm it to send to the blockchain'); } else {   logger.d('Unknown error happened $e'); }   } }   } <\/code><\/pre>\n<h3>\u0418\u0442\u043e\u0433\u043e\u0432\u044b\u0439 \u043a\u043e\u0434<\/h3>\n<pre><code>import 'package:flutter\/material.dart';  import 'package:darttonconnect\/exceptions.dart'; import 'package:darttonconnect\/logger.dart'; import 'package:darttonconnect\/ton_connect.dart'; import 'package:qr_flutter\/qr_flutter.dart';  void main() {   runApp(const MyApp()); }  class MyApp extends StatelessWidget {   const MyApp({super.key});    @override   Widget build(BuildContext context) { return MaterialApp(   theme: ThemeData( elevatedButtonTheme: ElevatedButtonThemeData( style: ButtonStyle( fixedSize: MaterialStateProperty.all(const Size(200, 30)))), primarySwatch: Colors.blue,   ),   home: const MyHomePage(), );   } }  class MyHomePage extends StatefulWidget {   const MyHomePage({super.key});    @override   State&lt;MyHomePage> createState() => _MyHomePageState(); }  class _MyHomePageState extends State&lt;MyHomePage> {   \/\/ Initialize TonConnect.   final<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-348878","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/348878","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=348878"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/348878\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=348878"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=348878"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=348878"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}