# Деплой смарт-контракта в тестнете ALEO **Published by:** [igotcrypt0](https://paragraph.com/@igotcrypto/) **Published on:** 2023-05-01 **URL:** https://paragraph.com/@igotcrypto/aleo ## Content Генерируем адрес КРАН Aeza Расширения: JSON BEAUTIFIER & EDITOR JSONVIEW Mobaxterm 1) Устанавливаем SnarkOS: sudo apt-get update sudo apt-get upgrade sudo apt-get install screen -S JustWannaRock curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh git clone https://github.com/AleoHQ/snarkOS.git --depth 1 cd snarkOS ./build_ubuntu.sh source $HOME/.cargo/env cargo install --path . 2)Настраиваем LEO: cd git clone https://github.com/AleoHQ/leo cd leo cargo install --path . leo 3)Деплой смарт-контракта: cd $HOME mkdir demo_deploy_Leo_app && cd demo_deploy_Leo_app WALLETADDRESS="Сюда вставляем Address" APPNAME=helloworld_"${WALLETADDRESS:4:6}" echo $APPNAME leo new "${APPNAME}" cd "${APPNAME}" && leo run && cd - PATHTOAPP=$(realpath -q $APPNAME) echo $PATHTOAPP cd $PATHTOAPP && cd .. PRIVATEKEY="Сюда вставляем PrivateKey" RECORD="Сюда вставляем то,что выдал сайт" (1:18 на видео) snarkos developer deploy "${APPNAME}.aleo" --private-key "${PRIVATEKEY}" --query "https://vm.aleo.org/api" --path "./${APPNAME}/build/" --broadcast "https://vm.aleo.org/api/testnet3/transaction/broadcast" --fee 25000000 --record "${RECORD}" ## Publication Information - [igotcrypt0](https://paragraph.com/@igotcrypto/): Publication homepage - [All Posts](https://paragraph.com/@igotcrypto/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@igotcrypto): Subscribe to updates