Key Takeaways
- TON (The Open Network) is now the exclusive blockchain for all Telegram Mini Apps as of February 2025, with existing apps required to migrate from other blockchains and implement TON Connect as the mandatory wallet connection protocol.
- TON Connect is the standardized communication protocol that securely links wallets and decentralized applications on TON, supporting over 30 wallets and connecting to hundreds of major applications while maintaining user control of private keys.
- The TON ecosystem has achieved massive scale with over 400 million wallets, 500 million monthly active Mini App users, and the ability to process millions of transactions per second with sub-6-second finality and minimal fees.
- Integration requires three core components: a Telegram bot created via BotFather, a web application hosted over HTTPS, and the TON Connect SDK (@tonconnect/ui or @tonconnect/ui-react) with a properly configured manifest.json file.
- Popular TON wallets include Tonkeeper (12+ million downloads), MyTonWallet, Wallet.tg, and TONhub, each offering features like staking, NFT management, jetton support, and seamless DApp connectivity through TON Connect.
- Wallet v5 standard enables gasless transactions where fees are deducted directly from sent tokens, supporting up to 255 outgoing messages per signed request for enhanced user experience and developer flexibility.
- Security best practices include init data validation using the bot token, HTTPS hosting requirements, never requesting seed phrases, and implementing proper error handling for wallet connections and transactions.
- Monetization options span Wallet Pay for crypto/fiat payments, Telegram Stars for in-app purchases, on-chain recurring payments via smart contracts, and direct Toncoin transactions with near-zero fees.
The convergence of blockchain technology and messaging platforms has created unprecedented opportunities for developers to reach billions of users without the traditional barriers of Web3 adoption. Telegram Mini Apps, powered by The Open Network (TON), represent the most significant development in this space, transforming a messaging application used by over 950 million people into a comprehensive blockchain ecosystem where users can interact with decentralized applications, manage digital assets, and conduct transactions without ever leaving their familiar chat interface.
At Nadcab Labs, our eight years of enterprise software development experience have positioned us at the forefront of this transformation. We have witnessed firsthand how TON wallet integration eliminates the friction that has historically prevented mainstream blockchain adoption. Users no longer need to understand complex wallet addresses, manage seed phrases across multiple applications, or navigate unfamiliar interfaces. Instead, they simply tap a button within Telegram, connect their preferred wallet, and begin interacting with decentralized services as naturally as sending a message to a friend.
This comprehensive guide explores every aspect of TON wallet integration in Telegram Mini Apps, from foundational concepts to advanced implementation strategies. Whether you are building your first Mini App or migrating an existing blockchain application to the TON ecosystem, understanding these integration patterns is essential for delivering experiences that meet user expectations and comply with Telegram’s updated blockchain guidelines.
Development Insight: As of January 2025, Telegram requires all Mini Apps utilizing blockchain functionality to implement TON Connect as their exclusive wallet connection protocol. Applications operating on other blockchains must complete migration to TON by February 21, 2025, making this integration knowledge essential for any developer building within the Telegram ecosystem.
1. Understanding TON and Telegram Integration
The Open Network: Architecture and Capabilities
The Open Network (TON) represents one of the most technically ambitious blockchain projects ever conceived, originally developed by the founders of Telegram before being handed to the community in 2020. Unlike conventional blockchains that struggle with scalability limitations, TON implements dynamic sharding architecture that enables the network to process millions of transactions per second while maintaining near-instant finality and minimal transaction costs. This performance capability makes TON uniquely suited for applications requiring high throughput, such as gaming, social commerce, and payment processing within Telegram’s massive user base.
The TON Virtual Machine (TVM) provides the execution environment for smart contracts, specifically designed to handle complex operations with minimal resource consumption. Unlike Ethereum’s EVM, which requires all nodes to process all transactions, TON’s sharded architecture distributes computational load across the network, enabling true horizontal scalability. Smart contracts on TON use specialized languages including FunC, Tolk, and Fift, each optimized for different aspects of blockchain programming.
Toncoin serves as the native cryptocurrency powering the entire ecosystem, used for transaction fees, staking, governance, and payments across all TON-based services. The integration with Telegram extends beyond technical infrastructure—Toncoin is the only cryptocurrency accepted for Telegram platform payments including Stars, Premium subscriptions, advertising, and developer payouts. This exclusive relationship creates a unified economic system where Mini App developers earn in the same currency their users spend.
TON Blockchain Architecture Overview
Coordinates validators, stores shard configurations, manages cross-shard messaging
Process transactions, execute smart contracts, manage account states
Automatic shard splitting/merging based on network load
Executes FunC/Tolk smart contracts with optimized resource usage
Standardized wallet-DApp communication protocol
Telegram Mini Apps: The Web3 Gateway
Telegram Mini Apps are lightweight web applications that run directly within the Telegram interface, built using standard web technologies including HTML, CSS, and JavaScript. Unlike traditional mobile applications requiring App Store distribution and installation, Mini Apps launch instantly from within Telegram chats, eliminating friction that typically prevents user adoption. This architecture has enabled viral growth patterns unprecedented in blockchain adoption, with applications like Notcoin and Hamster Kombat each attracting hundreds of millions of users.
The Mini App ecosystem provides developers with capabilities previously impossible in messaging contexts. The Telegram Web App API exposes device sensors including accelerometer, gyroscope, and location services. Payment processing supports both traditional providers (with Apple Pay and Google Pay integration) and cryptocurrency transactions through TON. Push notifications enable re-engagement, while cloud storage provides persistent data across sessions. Recent updates have added Device Storage for local persistence, Secure Storage for sensitive data, and comprehensive monetization features including paid subscriptions and gifting.
Seven distinct launch methods provide flexibility for different use cases: Main Mini App buttons on bot profiles, keyboard buttons within conversations, inline buttons in messages, the bot menu button, inline query results, direct links (t.me/botname/appname), and attachment menu entries. Each launch context provides appropriate user data and parameters, enabling contextual experiences that adapt to how users discover and interact with applications.
2. TON Connect: The Standard Wallet Protocol
TON Connect serves as the standardized communication protocol linking wallets and decentralized applications across the TON ecosystem. Conceptually similar to WalletConnect on Ethereum but purpose-built for TON’s architecture and Telegram integration, TON Connect enables secure communication between applications and wallets while ensuring users maintain complete control over their private keys. As the mandatory connection protocol for all Telegram Mini Apps, TON Connect serves as the essential infrastructure through which users access TON-based services.
Protocol Architecture
TON Connect implements a bridge-based architecture where communication between applications and wallets flows through intermediate servers that relay encrypted messages. This design accommodates wallets operating in different contexts—browser extensions, mobile applications, or Telegram-integrated wallets—without requiring direct network connections between the application and wallet. The protocol handles connection establishment, session management, and transaction signing through well-defined message formats that all compliant wallets implement consistently.
The manifest.json file serves as the application’s identity document within the TON Connect ecosystem. This JSON file, hosted at a publicly accessible URL, declares the application’s name, icon, website URL, and optional terms of service and privacy policy links. Wallets display this information when users connect, establishing trust and providing context about which application is requesting wallet access. Properly configured manifests are essential—missing or misconfigured manifests prevent wallet connections entirely.
SDK Options
The TON Connect ecosystem provides multiple SDK options optimized for different development contexts. The @tonconnect/ui package serves applications using vanilla JavaScript or frameworks other than React, providing a complete UI kit including connection buttons, wallet selection modals, and transaction confirmation dialogs. The @tonconnect/ui-react package wraps this functionality in React hooks and components, enabling seamless integration with React-based Mini Apps through familiar patterns like TonConnectUIProvider context and useTonConnectUI hooks.
For applications requiring lower-level control, the @tonconnect/sdk package provides protocol implementation without UI components, allowing developers to build custom interfaces while leveraging standardized wallet communication. Vue developers can utilize the @tonconnect/ui-vue SDK, while the protocol specification itself is publicly documented for implementations in other languages. This layered approach ensures developers can choose the abstraction level appropriate for their needs.
3. Popular TON Wallets for Mini App Integration
Understanding the wallet landscape is essential for developers building Mini Apps, as each wallet offers different capabilities, user experiences, and market penetration. The TON ecosystem supports over 30 wallets through TON Connect, but several have emerged as dominant players with millions of active users and comprehensive feature sets.
Tonkeeper
The most downloaded TON wallet with over 12 million users. Non-custodial architecture with support for staking, jettons, NFTs, TON DNS, and integrated DEX. Available on iOS, Android, web, and browser extensions. The W5 wallet standard enables gasless transactions.
Best for: General users, DeFi participants, Mini App developers testing integrations
MyTonWallet
Open-source, non-custodial wallet with over 1 million active users. Supports multi-accounts, TON and TRON networks, gasless payments, and TON Magic for Telegram transfers. Public codebase on GitHub enables security audits. Available across all platforms.
Best for: Privacy-focused users, developers, power users requiring multi-chain support
Wallet.tg
Telegram’s native integrated wallet supporting TON, USDT, BTC, and other tokens. Self-custodial with instant transfers between Telegram users. Built-in fiat on/off-ramps through MoonPay partnership. Seamless integration with Telegram UI.
Best for: Telegram-native users, beginners, peer-to-peer payments
TONhub
Mobile-focused non-custodial wallet with over 700,000 downloads. Prioritizes simplicity with biometric login, PIN protection, and instant staking access. Seamless TON Connect integration for DApp connectivity.
Best for: Mobile-first users, beginners, those prioritizing ease of use
Wallet Selection Considerations
When building Mini Apps, developers should avoid restricting wallet selection unless specific features require it. TON Connect guidelines explicitly discourage limiting wallet choices except when functionality depends on features not all wallets support. Users develop preferences for particular wallets based on their security requirements, multi-chain needs, and familiarity—forcing users to adopt unfamiliar wallets creates friction that reduces conversion and retention.
Different user segments gravitate toward different wallets. Experienced cryptocurrency users often prefer non-custodial options like Tonkeeper or MyTonWallet that provide full private key control. Newcomers entering through Telegram typically start with Wallet.tg due to its zero-friction onboarding within the familiar Telegram interface. High-value holders may utilize hardware wallet integration through Ledger or SafePal for maximum security. Understanding these preferences helps developers design appropriate connection flows and provide relevant guidance.
4. Step-by-Step Implementation Guide
Implementing TON wallet integration in a Telegram Mini App involves several interconnected components: the Telegram bot that hosts the Mini App, the web application that provides the user interface, and the TON Connect integration that enables wallet functionality. This section provides a comprehensive walkthrough of the implementation process.
Create Telegram Bot via BotFather
Message @BotFather on Telegram and send /newbot command. Provide a display name and unique username ending in “bot”. Save the API token securely—it authenticates your bot and should never be exposed publicly. Configure the bot’s menu button using /setmenubutton to link to your Mini App URL. For full Mini App support, use /newapp to register a web application with the bot.
Set Up Web Application Project
Initialize a new project using your preferred framework—React with Vite is recommended for optimal performance and development experience. Install the Telegram Web App SDK (@twa-dev/sdk) and TON Connect UI React package (@tonconnect/ui-react). Include the Telegram WebApp script (telegram.org/js/telegram-web-app.js) in your HTML head before other scripts to access the Telegram.WebApp object.
Create TON Connect Manifest
Create a tonconnect-manifest.json file specifying your application’s identity. Required fields include url (your app’s URL), name (display name), and iconUrl (application icon). Optional fields include termsOfUseUrl and privacyPolicyUrl. Host this file at a publicly accessible HTTPS URL—wallets fetch this manifest when users initiate connections.
Configure TonConnectUIProvider
Wrap your React application’s root component with TonConnectUIProvider, passing the manifest URL as a prop. For Telegram Mini App return handling, configure the actionsConfiguration prop with twaReturnUrl pointing to your Mini App’s Telegram URL (https://t.me/YOUR_BOT_NAME). All TON Connect hooks and components must be descendants of this provider.
Implement Wallet Connection UI
Add the TonConnectButton component to your interface—this universal component handles connection initiation and transforms into a wallet menu after connection. Use useTonAddress() to retrieve the connected wallet address, useTonWallet() for detailed wallet information, and useTonConnectUI() for programmatic modal control. Implement status change handlers using onStatusChange subscriptions.
Deploy and Test
Deploy your application to an HTTPS-enabled hosting platform—Vercel, Netlify, or similar services work well. Update your bot’s menu button URL to point to the deployed application. Test wallet connections across multiple wallets (Tonkeeper, MyTonWallet, Wallet.tg) and devices. Verify the application functions correctly both within Telegram and in standalone browser contexts.
Code Implementation Example
// App.jsx - Root component with TON Connect provider
import { TonConnectUIProvider } from '@tonconnect/ui-react';
export function App() {
return (
);
}
// WalletConnection.jsx - Connection component
import { TonConnectButton, useTonAddress, useTonWallet } from '@tonconnect/ui-react';
export function WalletConnection() {
const userFriendlyAddress = useTonAddress();
const wallet = useTonWallet();
return (
{wallet && (
Connected: {wallet.name}
Address: {userFriendlyAddress}
)}
);
}
// tonconnect-manifest.json
{
"url": "https://your-app.com",
"name": "Your TON Mini App",
"iconUrl": "https://your-app.com/icon.png",
"termsOfUseUrl": "https://your-app.com/terms",
"privacyPolicyUrl": "https://your-app.com/privacy"
}
5. Sending Transactions and Smart Contract Interaction
Beyond wallet connection, most Mini Apps require the ability to send transactions—whether simple TON transfers, jetton (token) transfers, or complex smart contract interactions. TON Connect provides the sendTransaction method for requesting wallet signatures on transaction payloads, which the wallet then broadcasts to the TON network.
Transaction Structure
TON transactions consist of messages containing destination addresses, amounts, and optional payloads. Unlike Ethereum where each transaction targets a single address, TON’s architecture allows a single signed request to include multiple messages, enabling batched operations that reduce user friction and gas costs. The v5 wallet standard supports up to 255 outgoing messages per signed request, making it ideal for complex operations like multi-recipient payments or coordinated smart contract calls.
Transaction payloads encode the operation being performed. For simple TON transfers, no payload is required—just the destination and amount. Jetton transfers require constructing a cell containing the transfer operation code, amount, destination, and response address. Smart contract interactions encode function calls with their parameters. The TON libraries (@ton/core, @ton/ton) provide builders for constructing these payloads correctly.
Simple TON Transfer
Transfer native Toncoin between addresses. Requires only destination address and amount in nanotons (1 TON = 10^9 nanotons). Minimal gas costs, near-instant confirmation. Most common transaction type for payments and tipping.
Use case: User payments, rewards distribution, peer transfers
Jetton (Token) Transfer
Transfer fungible tokens following the Jetton standard. Requires interaction with the sender’s jetton wallet contract, specifying recipient, amount, and optional forward payload. Supports gasless transfers on v5 wallets.
Use case: Stablecoin payments, token distribution, DeFi interactions
Smart Contract Call
Execute arbitrary smart contract functions by encoding operation codes and parameters into the message body. Supports complex multi-step operations when combined with internal contract-to-contract messaging.
Use case: NFT minting, DEX swaps, staking, governance voting
Transaction Code Example
// Sending a simple TON transfer
import { useTonConnectUI } from '@tonconnect/ui-react';
import { toNano } from '@ton/core';
function SendTransaction() {
const [tonConnectUI] = useTonConnectUI();
const handleSend = async () => {
const transaction = {
validUntil: Math.floor(Date.now() / 1000) + 600, // 10 minutes
messages: [
{
address: "EQCD39VS5jcptHL8vMjEXrzGaRcCVYto7HUn4bpAOg8xqB2N",
amount: toNano("0.5").toString(), // 0.5 TON
}
]
};
try {
const result = await tonConnectUI.sendTransaction(transaction);
console.log('Transaction sent:', result.boc);
} catch (error) {
console.error('Transaction failed:', error);
}
};
return ;
}
6. Security Best Practices
Security in blockchain applications requires attention at multiple layers—from validating user identity through Telegram’s init data to protecting against transaction manipulation and phishing attacks. The consequences of security failures extend beyond typical web application risks, as compromised blockchain transactions are irreversible and can result in permanent loss of user funds.
Essential Security Requirements
Init Data Validation
Always validate Telegram.WebApp.initData on your backend using the bot token to verify requests genuinely originate from Telegram. Never trust init data without cryptographic verification—attackers can forge requests with arbitrary user IDs.
HTTPS Requirement
All Mini Apps must be served over HTTPS—Telegram enforces this requirement. Use SSL certificates from trusted authorities and ensure all resources (scripts, images, API calls) also load over HTTPS to prevent mixed content vulnerabilities.
Never Request Seed Phrases
Legitimate applications never ask for wallet seed phrases or private keys. TON Connect enables transaction signing without exposing keys—if your implementation requires seed phrase access, the design is fundamentally flawed. Educate users that requests for seed phrases indicate scams.
Transaction Verification
Wallets display transaction details for user review before signing. Ensure your application constructs transactions accurately—any discrepancy between displayed information and actual transaction content destroys user trust and may indicate compromise.
Protecting Against Common Attack Vectors
Phishing attacks represent the most significant threat to Mini App users. Attackers create counterfeit bots and Mini Apps that mimic legitimate services, tricking users into connecting wallets or signing malicious transactions. Protect your users by maintaining consistent branding, communicating only through official channels, and educating users about verification practices. Consider implementing additional confirmation steps for high-value transactions.
Input sanitization prevents cross-site scripting (XSS) attacks that could inject malicious code into your Mini App. Never render user-supplied content without proper escaping. Content Security Policy headers provide additional protection by restricting script execution sources. Rate limiting prevents abuse of your backend services and protects against denial-of-service attacks.
Smart contract security requires careful auditing before deployment. Unlike traditional software where bugs can be patched, deployed smart contracts are immutable—vulnerabilities cannot be fixed without migrating to new contracts. At Nadcab Labs, we recommend professional security audits for any smart contracts handling significant value, along with comprehensive testing on testnet before mainnet deployment.
7. Monetization and Payment Integration
The TON ecosystem provides multiple monetization pathways for Mini App developers, ranging from traditional payment processing to native cryptocurrency transactions and Telegram’s Stars virtual currency. Understanding these options enables developers to choose revenue models appropriate for their user base and regulatory requirements.
Wallet Pay integration provides the smoothest payment experience for users unfamiliar with cryptocurrency. The system handles both crypto and fiat transactions through the Wallet interface, with merchants receiving funds through established withdrawal processes. The Wallet Pay Business Support bot provides implementation assistance, while the Demo Store Bot demonstrates functionality before integration.
For applications targeting crypto-native users, direct TON transactions through TON Connect offer the lowest friction and minimal fees. Because TON’s network fees are extremely low (typically fractions of a cent), even micro-payments remain economically viable—enabling business models impossible on higher-fee networks. Smart contract-based subscriptions can automate recurring payments entirely on-chain, removing the need for traditional payment infrastructure.
8. Successful Mini Apps and Use Cases
The TON Mini App ecosystem has produced remarkable success stories that demonstrate the potential of wallet-integrated applications to achieve viral adoption. Understanding these successes provides valuable insights for developers planning their own Mini App launches.
Notcoin
The Mini App that initiated the TON gaming phenomenon in early 2024. Simple tap-to-earn mechanics attracted hundreds of millions of users. NOT token launched on major exchanges including Binance, validating the “Telegram-to-token” model. Demonstrated that viral growth is achievable within the Telegram ecosystem.
Tap-to-Earn
Token Launch
Blum
Comprehensive DeFi hub with 43+ million monthly active users. Enables token swaps, memecoin launches, point farming, and AI-assisted strategies without leaving Telegram. Backed by Binance Labs. Supports 45+ chains while maintaining TON-native experience. Represents the evolution toward sophisticated financial Mini Apps.
Multi-Chain
Token Launch
Major
Pioneering social-to-token model with 70+ million total users. Transforms everyday Telegram interactions—chatting, completing tasks, solving puzzles—into tokenized rewards. MAJOR token integrated across TON ecosystem. Demonstrates monetization of engagement metrics beyond traditional gaming.
Gamification
Rewards
Emerging Use Cases
Beyond gaming and DeFi, the Mini App ecosystem is expanding into diverse verticals. Decentralized marketplaces enable peer-to-peer commerce with escrow smart contracts. Payment applications facilitate cross-border remittances with minimal fees. Business management tools handle membership distribution, incentive programs, and organizational voting. Content monetization platforms enable creators to earn directly from their audience without platform intermediaries.
At Nadcab Labs, we observe particular potential in enterprise applications that leverage TON’s speed and cost-efficiency for high-volume transaction processing. Supply chain tracking, loyalty program management, and B2B payment processing represent areas where TON’s technical capabilities provide meaningful advantages over traditional infrastructure.
9. Future Developments and Ecosystem Growth
The TON-Telegram partnership continues deepening with each platform update, creating expanding opportunities for Mini App developers. Understanding the roadmap helps developers position their applications to leverage new capabilities as they emerge.
Telegram has announced plans to tokenize additional digital assets exclusively on TON, including emojis, stickers, and limited edition gifts as NFTs. This expansion creates new markets for Mini Apps facilitating creation, trading, and utilization of these digital collectibles. The integration of native USDT support has already driven significant ecosystem growth, with Mini Apps reaching 500 million monthly active users as of late 2025.
Technical advancements continue enhancing developer capabilities. Recent Mini App API updates added Device Storage for persistent local data, Secure Storage for sensitive information, and comprehensive sensor access including accelerometer, gyroscope, and location services. The file download API enables native download prompts, while media sharing capabilities allow Mini Apps to distribute content to chats and stories. These features enable increasingly sophisticated applications that rival native mobile app capabilities.
Market Opportunity
With Telegram’s 950+ million users and TON’s exclusive blockchain position, Mini Apps represent one of the largest addressable markets in Web3. Analysts project TON could achieve market capitalizations between $50-80 billion within 24 months assuming continued adoption growth. Early entrants establishing strong user bases now position themselves advantageously for this expansion.
10. Getting Started with Your Mini App
Launching a successful TON-integrated Mini App requires combining technical implementation with strategic planning. This section provides a roadmap for developers beginning their Mini App journey.
Development Checklist
Prerequisites
- Telegram account for bot creation
- Node.js 16+ development environment
- HTTPS hosting (Vercel, Netlify, etc.)
- TON wallet with testnet tokens
- Basic React/JavaScript knowledge
Key Packages
- @tonconnect/ui-react (React integration)
- @twa-dev/sdk (Telegram Web App SDK)
- @ton/core (transaction building)
- @ton/ton (blockchain interaction)
- telegraf (bot backend, optional)
Essential Resources
- docs.ton.org – Official documentation
- core.telegram.org/bots/webapps – Mini App API
- ton-connect.github.io/sdk – SDK reference
- testnet.tonscan.org – Testnet explorer
- t.me/tondev – Developer community
Begin development on testnet to avoid spending real tokens during iteration. TON testnet provides identical functionality with free tokens available from faucets. Configure your application to support both networks, allowing seamless transition to mainnet when ready for production. Test wallet connections across multiple wallet applications to ensure broad compatibility.
Consider user experience throughout development. Mini Apps should load quickly—Telegram’s interface creates expectations of instant responsiveness. Implement loading states, error handling, and offline fallbacks gracefully. Respect Telegram’s theme system by using dynamic colors that adapt to user preferences. Design touch-friendly interfaces with appropriate target sizes for mobile interaction.
Conclusion: Building the Future of Telegram Commerce
TON wallet integration in Telegram Mini Apps represents a fundamental shift in how blockchain technology reaches mainstream users. By embedding Web3 capabilities within a messaging application used by nearly a billion people, the TON-Telegram partnership has eliminated the adoption barriers that have historically confined blockchain to technical enthusiasts. Users interact with decentralized applications as naturally as they send messages, without understanding or even being aware of the underlying blockchain infrastructure.
The technical implementation, while requiring attention to security and user experience details, leverages mature tooling through TON Connect and the Telegram Web App API. Standard web development skills translate directly to Mini App development, lowering barriers for developers entering the ecosystem. The mandatory migration to TON by February 2025 ensures a unified ecosystem where all Mini Apps share consistent wallet integration patterns.
Success in the Mini App ecosystem requires combining technical excellence with compelling user experiences. The applications achieving viral adoption share common characteristics: simple onboarding, engaging mechanics, and clear value propositions. Wallet integration should enhance rather than complicate the user journey, enabling capabilities impossible without blockchain while remaining invisible to users who don’t need to understand the technology.
At Nadcab Labs, our extensive experience in blockchain development and enterprise software positions us to help organizations navigate this emerging landscape. Whether building new Mini Apps from scratch or migrating existing blockchain applications to the TON ecosystem, we provide the technical expertise and strategic guidance necessary for successful launches in this rapidly evolving market.
Ready to Build Your TON Mini App?
Nadcab Labs combines deep TON blockchain expertise with eight years of enterprise software development experience to deliver Mini Apps that engage users and generate revenue. From initial concept through deployment and ongoing optimization, our team ensures your application meets Telegram’s requirements while maximizing market opportunity.
FREQUENTLY ASKED QUESTIONS
TON Connect is the standardized communication protocol that securely links wallets and decentralized applications on The Open Network (TON) blockchain. As of January 2025, Telegram requires all Mini Apps utilizing blockchain functionality to implement TON Connect as their exclusive wallet connection protocol. This mandate applies to all blockchain-related features including wallet connections, user authorization, on-chain signatures, and sending/receiving digital assets. TON Connect supports over 30 wallets and enables secure transaction signing while users maintain complete control of their private keys. Existing Mini Apps operating on other blockchains must migrate to TON and implement TON Connect by February 21, 2025.
To integrate TON wallet connection in React, install the @tonconnect/ui-react package using npm or yarn. Create a tonconnect-manifest.json file containing your app’s URL, name, icon URL, and optional terms/privacy links, then host it at a publicly accessible HTTPS URL. Wrap your application’s root component with TonConnectUIProvider, passing the manifest URL as a prop. For Telegram Mini App return handling, configure actionsConfiguration with twaReturnUrl pointing to your bot’s Telegram URL. Add the TonConnectButton component to your interface for wallet connection UI. Use hooks like useTonAddress() to get the connected wallet address and useTonWallet() for detailed wallet information.
The tonconnect-manifest.json file serves as your application’s identity document within the TON Connect ecosystem. Wallets display this information when users connect, establishing trust and context. Required fields include: “url” (your app’s website URL), “name” (display name shown in wallets), and “iconUrl” (URL to your application’s icon). Optional fields include “termsOfUseUrl” and “privacyPolicyUrl” for legal documentation links. The manifest must be hosted at a publicly accessible HTTPS URL that wallets can fetch during connection requests. Missing or misconfigured manifests will prevent wallet connections entirely.
The most popular TON wallets for Mini App integration include Tonkeeper (12+ million downloads), the most downloaded non-custodial wallet supporting staking, jettons, NFTs, and integrated DEX across iOS, Android, web, and browser extensions. MyTonWallet is an open-source, non-custodial wallet with 1+ million users featuring gasless payments and multi-account support. Wallet.tg is Telegram’s native integrated wallet supporting TON, USDT, and BTC with built-in fiat on/off-ramps. TONhub offers mobile-focused simplicity with 700,000+ downloads, biometric login, and instant staking access. All these wallets support TON Connect for seamless Mini App integration.
To send transactions, use the sendTransaction method from the useTonConnectUI hook. Create a transaction object containing validUntil (timestamp for expiration) and a messages array with destination addresses and amounts in nanotons (1 TON = 10^9 nanotons). For simple TON transfers, specify only address and amount. For jetton transfers or smart contract calls, include a payload field with the encoded operation. The wallet displays transaction details for user approval before signing and broadcasting. The v5 wallet standard supports up to 255 outgoing messages per signed request, enabling batched operations that reduce user friction and gas costs.
Gasless transactions allow users to pay network fees directly from the tokens being sent, rather than requiring separate TON holdings for gas. This feature is enabled by the v5 (W5) wallet standard on TON. Users sending jettons (tokens) can have fees deducted from the transfer amount, eliminating the need to hold native TON for transaction fees. Tonkeeper has implemented the W5 wallet standard supporting gasless transactions and up to 255 simultaneous outgoing messages. MyTonWallet also supports gasless payments for transfers and swaps. This feature significantly improves user experience for newcomers who may not yet hold TON tokens.
Essential security measures include: Always validate Telegram.WebApp.initData on your backend using the bot token to verify requests genuinely originate from Telegram. Serve all Mini Apps over HTTPS as required by Telegram. Never request seed phrases or private keys—TON Connect enables transaction signing without exposing keys. Implement input sanitization to prevent XSS attacks. Use Content Security Policy headers to restrict script execution sources. Apply rate limiting to protect backend services. For smart contracts, conduct professional security audits before deployment since deployed contracts are immutable. Educate users that legitimate applications never ask for seed phrases.
TON Mini Apps offer multiple monetization pathways: Wallet Pay is the primary payment system supporting both crypto and fiat transactions through the Wallet ecosystem. Telegram Stars enable in-app purchases and micro-transactions, convertible to Toncoin. Direct TON payments via TON Connect offer minimal network fees (fractions of a cent), making even micro-payments viable. Paid subscriptions powered by Stars provide recurring revenue for premium features. Smart contract-based on-chain subscriptions automate recurring payments in Toncoin without traditional payment infrastructure. Developers receive payouts in Toncoin for Stars and advertisement revenue earned through their Mini Apps.
To create a Telegram bot for your Mini App, message @BotFather on Telegram and send the /newbot command. Provide a display name and unique username ending in “bot” (e.g., @YourAppBot). BotFather will provide an API token—save this securely as it authenticates your bot and should never be exposed publicly. Configure the bot’s menu button using /setmenubutton to link to your Mini App’s HTTPS URL. For full Mini App registration, use /newapp to create a web application associated with your bot, providing a title, description, and 640×360 preview image. You can also set domain restrictions using /setdomain.
Successful TON Mini Apps include Notcoin, which pioneered tap-to-earn gaming with hundreds of millions of users and launched its NOT token on major exchanges including Binance. Blum is a comprehensive DeFi hub with 43+ million monthly users enabling token swaps, memecoin launches, and AI-assisted strategies, backed by Binance Labs. Major transformed social interactions into tokenized rewards with 70+ million users. Key success factors include: simple onboarding without blockchain complexity, engaging mechanics that reward participation, clear value propositions, viral sharing mechanisms within Telegram, and wallet integration that enhances rather than complicates user experience. These apps demonstrate that mainstream adoption is achievable when blockchain functionality remains invisible to users.
Reviewed & Edited By

Aman Vaths
Founder of Nadcab Labs
Aman Vaths is the Founder & CTO of Nadcab Labs, a global digital engineering company delivering enterprise-grade solutions across AI, Web3, Blockchain, Big Data, Cloud, Cybersecurity, and Modern Application Development. With deep technical leadership and product innovation experience, Aman has positioned Nadcab Labs as one of the most advanced engineering companies driving the next era of intelligent, secure, and scalable software systems. Under his leadership, Nadcab Labs has built 2,000+ global projects across sectors including fintech, banking, healthcare, real estate, logistics, gaming, manufacturing, and next-generation DePIN networks. Aman’s strength lies in architecting high-performance systems, end-to-end platform engineering, and designing enterprise solutions that operate at global scale.





