This guide gets you from zero to a running TON smart contract project as fast as possible. You will scaffold a counter contract from Acton’s built-in template, compile it, run the test suite, install the frontend dependencies, and open the dApp in your browser ready to deploy and interact on testnet.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ton-blockchain/acton/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before you begin, make sure the following are available on your machine:Acton CLI
Install Acton with the one-line installer. Run
acton --version to confirm.Node.js 22+ LTS
Required for the TypeScript app scaffold generated by
--app. Download the current LTS release.New project path
The steps below create a full project from scratch using thecounter built-in template.
Create the project
acton new scaffolds a new project directory from a built-in template. The counter template ships with a ready-made contract, tests, and a deployment script. Adding --app generates a Vite-based React frontend and TypeScript wrappers alongside the Tolk sources.Build the contract
Compile every contract configured in Expected output:
Acton.toml and write build artifacts to build/:Run the tests
Discover and run all The counter template ships with eight tests covering deployment, increment, decrement, reset, overflow guards, and access control. You should see all eight pass:
*.test.tolk files in the project:The Vite frontend uses the generated TypeScript wrappers in
wrappers-ts/ to communicate with the contract. Run acton wrapper Counter --ts any time you change the contract ABI to regenerate those wrappers.Existing project path
Already have a TON repository and want to add Acton support? Runacton init in the project root instead of creating a new scaffold:
acton init writes an Acton.toml manifest, installs the bundled standard library, and detects existing contract entrypoints where possible.
Deploying to testnet
Once tests pass locally, you can deploy to the TON testnet with a funded wallet and a deployment script. The counter template includes one atcontracts/scripts/deploy.tolk.
Next steps
Walkthrough
Continue from this point: build, lint, coverage, mutation testing, wallets, deploying to testnet, and verifying on-chain.
acton build
Learn about build options, artifact layout, and dependency handling.
acton test
Explore coverage, mutation testing, fuzz testing, and the browser Test UI.
acton check
Run the Tolk linter with 25+ rules across your contract sources.