Tolk is a statically typed language for writing smart contracts on TON. It provides declarative data structures, automatic cell serialization, and message handling primitives. The language compiles to TVM and provides direct control over execution.Documentation Index
Fetch the complete documentation index at: https://companyname-a7d5b98e-closes-1950-ai-ai-ai-ai-ai-ai-ai.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Key features
Tolk provides high-level readability while preserving low-level control:- a type system for describing cell layouts;
lazyloading that skips unused fields;- unified message composition and deployment;
- a compiler targeting the Fift assembler;
- tooling with IDE integration.
From FunC to Tolk
Tolk evolved from FunC and is now the recommended language for TON smart contracts. To migrate from FunC:- see Tolk contract examples for embedded jetton and NFT examples;
- check gas benchmarks;
- read Tolk vs FunC for an overview;
- use the FunC-to-Tolk converter to migrate existing projects.
Quick start
-
Run the command:
- Enter a project name and choose “A simple counter contract (Tolk)”.
- Follow Your first smart contract page to write the contract in Tolk.
IDE support
- JetBrains IDEs plugin provides syntax highlighting and code navigation.
- VSCode extension adds syntax highlighting, code navigation, and other language features for VS Code and VS Code-based editors such as VSCodium, Cursor, and Windsurf.
- Language server supports (Neo)Vim, Helix, and other editors with LSP support.