Setting up the environment
To start working with Tolk, you’ll need a development environment.
We recommend using Blueprint, a tool for writing, testing, and deploying smart contracts on TON.
Create a new TON project
(Node.js version 16 or higher required)
-
Create a new TON project:
npm create ton@latest
-
Enter any project name and select "A simple counter contract (Tolk)" when prompted by Blueprint.
Project structure:
my-first-contract/
├── build/ # Compiled smart contract bytecode
├── contracts/ # Smart contract sources (e.g., counter.tolk)
├── scripts/ # TypeScript deployment scripts
├── tests/ # TypeScript tests
├── wrappers/ # TypeScript wrappers for contracts