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:- 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. Download from marketplace and install it.
- 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.
- Download from marketplace and install it.
- Download from OpenVSX registry and install it.
- Language server supports (Neo)Vim, Helix, and other editors with LSP support. Download an archive and install it.