Introduction
TON (The Open Network) is a Layer 1 blockchain originally designed by Telegram and now maintained by the open-source community. It features an asynchronous multi-chain architecture that can process millions of transactions per second through dynamic sharding. TON has deep integration with Telegram, enabling mini-apps and wallet functionality directly within the messaging platform.
What TON Does
- Provides a scalable blockchain with dynamic sharding that splits chains under load automatically
- Enables Telegram Mini Apps (TMAs) that run inside the Telegram messenger with wallet integration
- Supports smart contracts written in FunC (low-level) or Tact (high-level TypeScript-like language)
- Includes a built-in DNS system, proxy service, and decentralized storage layer
- Offers TON Connect for wallet authentication in web and mobile applications
Architecture Overview
TON uses a multi-chain architecture with a masterchain and up to 2^32 workchains, each of which can split into up to 2^60 shardchains. The masterchain stores validator sets and shard configurations. Shardchains process transactions for specific account ranges and can split or merge dynamically based on load. Communication between shards uses asynchronous message passing. Validators are selected through a proof-of-stake mechanism with slashing.
Self-Hosting & Configuration
- Run a full node by building from source with CMake or using the provided Docker images
- Configure the node with a global config file specifying network parameters and initial peers
- Set up a Liteserver to serve light client queries from wallets and applications
- Use the Blueprint SDK to scaffold, build, and test smart contracts locally
- Deploy contracts using Blueprint or the
tonos-cliwith a funded wallet
Key Features
- Dynamic sharding automatically splits and merges chains based on transaction load
- Asynchronous message passing between contracts enables high concurrency without blocking
- Telegram Mini Apps integration gives dApps access to Telegram's user base directly in-chat
- TON Connect provides a standard protocol for wallet connections across dApps
- Built-in TON DNS maps human-readable names to contract addresses and services
Comparison with Similar Tools
- Ethereum — single-chain sequential execution; TON uses dynamic multi-chain sharding for parallelism
- Solana — single high-throughput chain; TON scales horizontally through shardchains
- Near — static sharding with Nightshade; TON shards dynamically based on load
- Sui — object-based parallelism on a single chain; TON distributes across multiple shardchains
- Cosmos — app-chains connected via IBC; TON shardchains are part of one unified protocol
FAQ
Q: What programming languages are used for TON smart contracts? A: FunC is the low-level language, and Tact is a newer high-level language with TypeScript-like syntax. Both compile to TON VM bytecode.
Q: How does TON integrate with Telegram? A: Through Telegram Mini Apps (TMAs), which are web apps embedded in the Telegram interface with access to user identity and TON wallet functions.
Q: What is the TON token used for? A: Toncoin is used for gas fees, validator staking, governance, and payments within the TON ecosystem and Telegram Mini Apps.
Q: How does dynamic sharding work? A: When a shardchain's load exceeds a threshold, it splits into two shardchains processing different account ranges. They merge back when load decreases.