acton wallet
Reference manual for the acton wallet command
Synopsis
acton wallet [options] command
Description
Manage wallets used for Acton development workflows.
The wallet subsystem can create new wallets, import mnemonic-based wallets, list available wallets, export mnemonics interactively, sign external message bodies, request faucet funds, and remove stored wallet entries.
Wallets created by this workflow are intended for development and testing. The default network context is testnet.
Common Lifecycle
The wallet workflow is not limited to wallet new.
Typical follow-up commands are:
acton wallet importto reuse an existing mnemonicacton wallet list --balanceto inspect configured wallets and balancesacton wallet airdrop --net localnetto fund a wallet from a localnet faucetacton wallet signto sign an external message body without writing a whole scriptacton wallet export-mnemonicfor interactive exportacton wallet remove -yto remove a wallet non-interactively
TonCenter API Keys
Testnet balance-backed wallet flows read TONCENTER_TESTNET_API_KEY,
including wallet list --balance and the interactive post-airdrop balance
confirmation after wallet new.
Acton loads .env automatically, so the simplest setup during project work is
usually to keep this key there and use shell environment variables only for
one-off overrides or CI.
Subcommands
acton wallet new
Generate a new wallet.
Synopsis
acton wallet new [options]
Options
Wallet name.
Acton prompts for it.
Wallet version.
Acton prompts for it.
Save the wallet to local wallets.toml.
Save the wallet to global global.wallets.toml.
Use a secure native store for mnemonic storage when available.
Request testnet TON after wallet creation.
Faucet URL for automatic testnet airdrop.
Do not wait for testnet funds to appear after a successful automatic airdrop.
Emit JSON output.
Wallet names are normalized to lowercase, spaces become -, and unsupported
characters are removed.
acton wallet import
Import an existing mnemonic-based wallet.
Synopsis
acton wallet import [options] [mnemonics...]
Options
Mnemonic words for the wallet.
Acton prompts interactively.
Wallet name.
Wallet version.
Save the wallet to local wallets.toml.
Save the wallet to global global.wallets.toml.
Use a secure native store for mnemonic storage when available.
Emit JSON output.
acton wallet list
List configured wallets.
Options
Fetch and print wallet balances.
Emit JSON output.
acton wallet export-mnemonic
Export a wallet mnemonic with interactive confirmation.
Synopsis
acton wallet export-mnemonic [options] [name]
This command is interactive-only and asks for confirmation before showing the mnemonic.
acton wallet sign
Sign an external message body with the selected wallet.
Synopsis
acton wallet sign [options] [name]
Options
Wallet name.
External body BoC to sign in hex or base64.
Acton reads from stdin when stdin is piped; otherwise it prompts interactively.
Emit JSON output.
Without --json, Acton prints the signed external-body BoC in hex. With
--json, it prints a JSON object containing the signed hex body.
acton wallet airdrop
Request faucet funds for a wallet.
Synopsis
acton wallet airdrop [options] [name]
Options
Wallet name.
Acton auto-selects or prompts.
Airdrop backend.
testnet, localnet
Custom faucet URL for the testnet backend.
Do not wait for testnet funds to appear after a successful testnet airdrop.
Emit JSON output.
With --net localnet, Acton uses the localnet faucet instead of the
testnet PoW flow.
acton wallet remove
Remove a wallet from configuration.
Synopsis
acton wallet remove [options] [name]
Options
Wallet name.
Skip the confirmation prompt.
Emit JSON output.
If the wallet uses keyring storage, Acton also removes the mnemonic from the secure store.
Resolution Rules
- wallet definitions are merged from
global.wallets.tomlfirst and then localwallets.toml - when both files define the same wallet name, the local entry wins
- commands that need a wallet auto-select it only when exactly one merged wallet is available
- otherwise Acton prompts on a TTY; in non-interactive contexts, provide the wallet name explicitly
New And Import Workflow
wallet new and wallet import share the same storage choices and most of the
same prompts.
- if
--nameis omitted, Acton prompts for the wallet name - if
--versionis omitted, Acton prompts for the wallet version - local wallets are stored in project
wallets.toml - global wallets are stored in
global.wallets.toml - common wallet versions include
v5r1,v4r2,v3r2, and highload variants
When secure native storage is available, Acton prefers storing mnemonics in the system keyring instead of plain-text config.
- if
--secure=trueis requested explicitly but secure storage is unavailable, the command fails - if secure storage is unavailable and
--secureis omitted, Acton falls back to plain-text config
When wallet new is used interactively without --airdrop, Acton can offer to
request testnet funds automatically after creating the wallet.
After an interactive auto-airdrop succeeds, Acton briefly waits for the balance
to appear on testnet and lets you skip that wait by pressing Enter, unless
--no-wait-airdrop is passed.
Listing, Signing, And Export
wallet list --balanceresolves balances through TonCenter and also respectsTONCENTER_TESTNET_API_KEY; the same environment variable is used whenwallet newwaits for testnet funds after an interactive auto-airdropwallet signauto-detects hex and base64 input, preferring hex when a payload could be interpreted as both- surrounding stdin whitespace is trimmed before decoding the message body
wallet export-mnemonicis interactive-only and asks for confirmation before showing the mnemonic
Airdrop Details
For wallet airdrop, the selected backend depends on --net.
testnetrequests a PoW challenge from the faucet, solves it locally, and submits a claimlocalnetsends a fixed faucet transfer through Localnet
After a successful interactive testnet wallet airdrop, Acton briefly waits
for the balance to appear and lets you skip that wait by pressing Enter,
unless --no-wait-airdrop is passed.
--faucet-url is only valid for testnet, must use http or https, and may
not include query parameters or fragments.
When --json is used, successful responses include the wallet address and may
also include PoW metadata such as difficulty, nonce, and solve time for the
testnet flow.
Removal Notes
- if both local and global wallets share the same name, local config takes precedence when removing
- in non-interactive mode,
wallet removerequires-yor--yes - removing a wallet from config does not delete external files or environment variables referenced through other mnemonic sources
Storage
Wallets can be stored:
- locally in project
wallets.toml - globally in
global.wallets.toml - with mnemonic values in plain text (
mnemonic), secure keyring storage (mnemonic-keyring), environment variables (mnemonic-env), or external files (mnemonic-file) depending on configuration
For local wallets, keyring IDs usually include a project prefix. For global wallets, the keyring ID usually matches the wallet name.
Security
- secure keyring storage is recommended when available
- plain-text mnemonic storage is for development only
- do not commit wallet files with real secrets to version control
Exit Status
0: The selected wallet subcommand completed successfully.1: Input validation failed, a required wallet could not be resolved, a prompt could not run non-interactively, secure storage failed, or a network call such as balance lookup or faucet funding failed.
Display Options
Control when to use colored output.
auto, always, never
Project Options
Path to the Acton.toml file to use for this invocation.
Use this when running the command outside the project directory or when the manifest lives at a non-default location.
Path to the project root to use for configuration discovery and relative defaults.
This conflicts with --manifest-path.
Examples
-
Create a local deployer wallet:
acton wallet new --name deployer --version v5r1 --local -
Import an existing mnemonic:
acton wallet import --name deployer --local "word1 word2 ... word24" -
Show balances:
acton wallet list --balance -
Request faucet funds:
acton wallet airdrop deployer --net testnet acton wallet airdrop deployer --net localnet -
Sign an external body read from stdin:
cat body.boc.base64 | acton wallet sign deployer
See Also
acton help localnet- Wallet command guide
- Wallet setup guide
Last updated on