# Деплой смарт-контракта в тестнете ALEO

By [igotcrypt0](https://paragraph.com/@igotcrypto) · 2023-05-01

---

[![]({{DOMAIN}}/editor/youtube/play.png)](https://www.youtube.com/watch?v=WquQk1hch48)

[**Генерируем адрес**](https://aleo.tools/)

[**КРАН**](https://faucet.aleo.org/)

[**Aeza**](https://aeza.net/?ref=371223)

**Расширения:**

[**JSON BEAUTIFIER & EDITOR**](https://chrome.google.com/webstore/detail/json-beautifier-editor/lpopeocbeepakdnipejhlpcmifheolpl) [**JSONVIEW**](https://chrome.google.com/webstore/detail/jsonview/gmegofmjomhknnokphhckolhcffdaihd)

[**Mobaxterm**](https://mobaxterm.mobatek.net/)

**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](https://sh.rustup.rs) | sh

git clone [https://github.com/AleoHQ/snarkOS.git](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](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](https://vm.aleo.org/api)" --path "./${APPNAME}/build/" --broadcast "[https://vm.aleo.org/api/testnet3/transaction/broadcast](https://vm.aleo.org/api/testnet3/transaction/broadcast)" --fee 25000000 --record "${RECORD}"

---

*Originally published on [igotcrypt0](https://paragraph.com/@igotcrypto/aleo)*
