This docker image represents a fully working TON node with 1 validator and a faucet wallet.
Note: use for LOCAL development only.
- It uses my-local-ton project without GUI.
Port
4443
is used for lite-client connection. - It also has a convenient sidecar on port
8000
with some useful tools. - Please note that it might take several minutes to bootstrap the network.
curl -s http://ton:8000/faucet.json | jq
{
"initialBalance": 1000001000000000,
"privateKey": "...",
"publicKey": "...",
"walletRawAddress": "...",
"mnemonic": "...",
"walletVersion": "V3R2",
"workChain": 0,
"subWalletId": 42,
"created": false
}
Please note that the config returns IP of localhost (int 2130706433
).
If you need to have a custom IP, provide DOCKER_IP=1.2.3.4
as env variable
curl -s http://ton:8000/lite-client.json | jq
{
"@type": "config.global",
"dht": { ... },
"liteservers": [
{
"id": { "key": "...", "@type": "pub.ed25519" },
"port": 4443,
"ip": 2130706433
}
],
"validator": { ... }
}
It checks for config existence and the fact of faucet wallet deployment
curl -s http://ton:8000/status | jq
{
"status": "OK"
}