# CLI Command
$ tons dev send-external ./scripts/deploy.py deploy_through_external --wait
# ./scripts/deploy.py
from tonsdk.contract.wallet import WalletContract, WalletVersionEnum, Wallets
from tonsdk.boc import Cell
def deploy_through_external() -> (str, Cell):
wallet_workchain = 0
wallet_version = WalletVersionEnum.v3r2
wallet_mnemonics = "YOUR 24 ... WORDS".split(" ")
_mnemonics, _pub_k, _priv_k, wallet = Wallets.from_mnemonics(
wallet_mnemonics, wallet_version, wallet_workchain)
return wallet.address.to_string(), wallet.create_init_external_message()["message"]