Use this file to discover all available pages before exploring further.
acton script executes a standalone Tolk script file. Scripts are the
standard Acton mechanism for deployment flows, blockchain queries, and one-off
operational tasks. They differ from tests in that they define a main() entry
point and can send real on-chain transactions when --net is provided.
Without --net the script runs entirely in the local TVM emulator, making it
safe to iterate on before committing to a broadcast.
Arguments after <PATH> are forwarded to the script’s main() function.
Insert -- before script arguments that look like flags to prevent Acton
from parsing them:
Fork blockchain state from a remote network for local execution. When --net is set, an omitted --fork-net defaults to that broadcast network. Conflicting values are rejected.
Broadcast to the selected network. When omitted, the script runs in emulation mode.
--tonconnect
flag
false
Use TON Connect wallet approval for broadcast messages instead of local wallet mnemonics. Saves the session to build/sessions/tonconnect/<network>.json.
--tonconnect-port <PORT>
u16
52258
Port for the local TON Connect page. Keep stable across runs for the same project so injected wallets recognise the local dApp.
--explorer <NAME>
tonscan | toncx | dton | tonviewer
—
Explorer to use for transaction links printed after a broadcast.
Executes locally using emulator wallets. No network access.
--fork-net
Resolves remote blockchain state but keeps execution local.
--net
Broadcasts real transactions. Reads wallet keys from wallets.toml.
--net --tonconnect
Broadcasts through a connected TON Connect wallet.
Wallet names referenced in the script are resolved from wallets.toml, with
local entries overriding global.wallets.toml. With --tonconnect, any
scripts.wallet("name") call resolves to the connected wallet address.
Forwarded arguments are parsed against the ABI for main():
Type
Syntax
Integers
42, -1, 0xff, 0b1010
Booleans
true, false
Nullable
null
cell / slice / bitsN
Plain BoC hex without C{} or CS{} prefixes
Arrays
[item1, item2]
The number of CLI arguments must exactly match the main() parameters.
Unsupported types include struct, tuple, map, dict, builder,
any_address, and other complex types.