Documentation 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.
acton verify publishes your Tolk contract source code to the TON Verifier service, creating a permanent public link between a deployed contract address and its human-readable source. Once verified, any blockchain explorer that integrates TON Verifier will show a verified badge and the full source alongside the contract. The command handles the entire flow: compiling locally, uploading sources to the verifier backend, collecting the required signatures, and optionally submitting the final on-chain verification transaction.
Synopsis
Options
| Flag | Type | Default | Description |
|---|---|---|---|
CONTRACT_NAME | string | prompted | Contract name from Acton.toml to verify |
--address | string | prompted | Deployed contract address to verify against |
--net | string | testnet | Network: testnet or mainnet |
--wallet | string | auto-selected | Wallet from wallets.toml to pay the verification transaction |
--compiler-version | string | current default | Tolk compiler version to request on the verifier side |
--dry-run | flag | — | Run the full flow without submitting the final blockchain transaction |
--tonconnect | flag | — | Use a TON Connect wallet instead of a local wallet |
--tonconnect-port | number | 52258 | Local port for the TON Connect approval page |
Verification process
Verification follows these steps automatically:- Compile — Acton compiles the local contract source with the configured Tolk version
- Upload — source files and compiler metadata are uploaded to the verifier backend
- Sign — the verifier collects the required number of backend signatures
- Transact — a small on-chain transaction (
0.1 TON) is sent to register the verification - Confirm — Acton prints a verifier link for the contract on success
--dry-run performs steps 1–3 but skips step 4. It is useful for validating that sources upload and signatures are collected without spending funds.
If the verifier backend reports that the contract is already verified, Acton exits successfully without sending another transaction — you will not be double-charged.
Prerequisites
Before runningacton verify:
- The contract must be a
.tolksource defined inActon.toml— precompiled.boccontracts cannot be verified - The contract must already be deployed at the provided address
- A funded wallet must be configured (or use
--tonconnect), unless running with--dry-run - The network must be
testnetormainnet—localnetand custom networks are not supported by verifier backends - The local source must produce the same compiled code hash as the deployed contract
Contract and wallet selection
- If
CONTRACT_NAMEis omitted and the project has exactly one contract, Acton selects it automatically - If multiple contracts exist, Acton prompts interactively
- If
--walletis omitted and exactly one wallet is configured, Acton auto-selects it --tonconnectand--walletare mutually exclusive
TonCenter API keys
Built-inmainnet/testnet requests read TONCENTER_MAINNET_API_KEY or TONCENTER_TESTNET_API_KEY from the environment. Acton loads .env automatically — set the key there for project work and use shell environment variables for CI.
TON Connect
Use--tonconnect when you want to approve the verification transaction through a browser wallet (Tonkeeper, MyTonWallet, etc.) rather than a locally stored mnemonic:
--tonconnect-port if the default port 52258 is already in use.
Environment overrides (advanced)
For debugging or testing against custom backends, three environment variables are available:| Variable | Effect |
|---|---|
ACTON_VERIFY_BACKEND | Override the source-upload /source backend URL |
ACTON_VERIFY_BACKENDS | Replace the signer /sign backend list (comma-separated) |
ACTON_VERIFY_DEBUG | Enable verbose verification diagnostics when set to any value |
Error handling and retries
Source upload is retried up to 8 times total for transient transport failures and 5xx backend responses. Retry backoff grows from 1 second to 7 seconds between attempts. If the backend consistently fails, try addingACTON_VERIFY_DEBUG=1 to see detailed request/response information.
Examples
Viewing verified contracts
After successful verification, Acton prints a verifier link. Verified contracts appear with a source badge on explorers that integrate TON Verifier:- TON Verifier — canonical verifier UI
- Tonviewer — shows source tab for verified contracts
- Tonscan — displays verification status
Exit status
0— verification completed successfully (including dry runs and already-verified contracts)1— compilation failed, verifier backend rejected the request, signature collection failed, wallet resolution failed, or the final transaction could not be sent
See Also
- Contract verification guide
acton wallet— configure a wallet for the verification transactionacton build— build contracts before verifying