Docs
Virtual environmentsLocalnet

Localnet overview

Localnet behavior, prerequisites, node controls, and resource requirements

Available since: Acton 1.2

A localnet runs TON validator-engine nodes and TON Center v2/v3 services in Docker. It includes consensus and validator elections. Use it for tests that depend on validator, full-node, or indexer behavior without relying on testnet availability.

Requirements and startup

Prerequisites

Verify Docker availability

Check that the engine and Compose are available:

docker info
docker compose version

Startup and storage

A full node can take about 20 seconds to start with images already available. Image downloads, additional nodes, and indexer initialization can make startup take longer, including several minutes on a first launch. Wait for node, API, and indexer readiness before sending requests.

Insufficient Docker disk space can interrupt localnet operation. Each node can use up to about 9.3 GiB per day.

Allocate space for all nodes, indexers, snapshot archives, and temporary restore data before startup.

Create and connect

Create a localnet and connect clients through Studio or the standalone CLI.

Localnet controls

Timing and API conditions

The --block-time-ms option sets an initial block-time target when creating a localnet. Actual timing depends on consensus and resources.

A localnet has no virtual clock, manual mining, or synthetic API rate-limit and response-delay controls. Use simulator time controls or API conditions for those scenarios.

Last updated on

On this page