Acton’s wallet management system lets you create, import, inspect, fund, and use TON wallets directly from the CLI. Wallets are used by deployment and interaction scripts when broadcasting to testnet or mainnet viaDocumentation 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.
--net. Without --net, scripts use virtual treasury wallets backed by the local emulator — so you can develop and test scripts without ever configuring a real wallet. When you’re ready to go live, acton wallet handles the full lifecycle from creation to funded deployment.
Creating a wallet
Create a new wallet with a fresh 24-word mnemonic:--name or --version is omitted, Acton prompts interactively. Pass --secure to control mnemonic storage: --secure stores the mnemonic in the native OS keyring (the default when keyring is available), --secure false stores it as plain text. The most common wallet versions are:
| Version | Description |
|---|---|
v5r1 | Wallet V5 R1 — current recommended version |
v4r2 | Wallet V4 R2 — widely deployed |
v3r2 | Wallet V3 R2 — legacy |
Importing an existing wallet
Import a wallet when you already have a mnemonic:acton wallet import follows the same placement rules as acton wallet new: --local stores in wallets.toml, --global stores in global.wallets.toml.
Listing wallets and balances
global.wallets.toml first, then from local wallets.toml. If both files define the same wallet name, the local entry wins.
Funding a wallet on testnet
New wallets start with zero balance. Acton provides a built-in faucet that performs a small cryptographic proof-of-work locally:For larger testnet allocations (up to 5,000 TON), use the Testgiver TON bot or submit a request form.
The wallets.toml file
Wallet configuration lives inwallets.toml (local) or ~/.config/acton/wallets/global.wallets.toml (global). Acton adds both files to .gitignore automatically.
Mnemonic storage options
Acton supports four mnemonic sources, resolved in this priority order:mnemonic-env → mnemonic-file → mnemonic-keyring → mnemonic.
- System keyring (recommended)
- Environment variable
- Secret file
- Plain text (dev only)
wallets.toml
Address safety checks
Add expected addresses to catch wallet misconfiguration before real-network operations:wallets.toml
acton wallet new and acton wallet import populate expected.address-testnet automatically. Add address-mainnet manually when the same wallet targets mainnet.
Using wallets in scripts
Resolve a configured wallet in a Tolk script withscripts.wallet():
scripts/deploy.tolk
--net, scripts.wallet() creates a local test wallet backed by the emulator treasury. This dual behavior lets you exercise all script logic before spending real TON.
TON Connect
Use--tonconnect with --net to sign transactions with an external wallet app like Tonkeeper instead of local keys:
--tonconnect is active, promptWallet() returns "tonconnect", and scripts.wallet("tonconnect") resolves to the connected wallet address.
Local vs global wallets
| Storage | Location | Use case |
|---|---|---|
| Local | wallets.toml in project root | Project-specific wallets |
| Global | ~/.config/acton/wallets/global.wallets.toml | Shared across multiple projects |
global.wallets.toml symlink in the project root.
Additional wallet operations
Export mnemonic
Remove a wallet
Sign an external message body
Security guidelines
Prefer keyring
Use
mnemonic-keyring for local development — the OS keyring keeps the mnemonic out of config files entirely.Use env vars in CI
Use
mnemonic-env in CI/CD pipelines where secrets are injected as environment variables.Never reuse across networks
Use separate wallets for testnet and mainnet. Cross-environment reuse is a significant security risk.
Test before broadcasting
Always run scripts without
--net first. The local emulator is free and instant.acton new and acton init add wallets.toml to .gitignore automatically. Verify this is in place before committing.