Share Dialog
CREATE A NEW ALEO WALLET
REQUEST TEST TOKENS
UBUNTU
The commands below do not need to be modified or supplemented
1 . Download required packages and create a tmux session
sudo apt update && \
sudo apt install make clang pkg-config libssl-dev build-essential gcc xz-utils git curl vim tmux ntp jq llvm ufw -y && \
tmux new -s deploy
2 . Add your wallet and private key as a variable
echo Enter your Private Key: && read PK && \
echo Enter your View Key: && read VK && \
echo Enter your Address: && read ADDRESS
3 .If everything is correct then use these commands
echo Private Key: $PK && \
echo View Key: $VK && \
echo Address: $ADDRESS
4 .Install required software
cd $HOME
git clone https://github.com/AleoHQ/snarkOS.git --depth 1
cd snarkOS
bash ./build_ubuntu.sh
source $HOME/.bashrc
source $HOME/.cargo/env
and
cd $HOME
git clone https://github.com/AleoHQ/leo.git
cd leo
cargo install --path .
5 .Deploy a contract
echo Enter the Name of your contract "(any)": && read NAME
and
cd $HOME && mkdir leo_deploy && cd leo_deploy
leo new $NAME
We need to take someone else's twitter link (like this one) and after:
https://vm.aleo.org/api/testnet3/transaction/……………………………………..
insert your transaction ID. We find all transactions (Events) in the wallet below and click on the compass icon (it will go to explorer). There we copy the Transaction ID and add it to the link

echo Paste the link: && read QUOTE_LINK && \
CIPHERTEXT=$(curl -s $QUOTE_LINK | jq -r '.execution.transitions[0].outputs[0].value')
and
RECORD=$(snarkos developer decrypt --ciphertext $CIPHERTEXT --view-key $VK)
and
snarkos developer deploy "$NAME.aleo" \
--private-key "$PK" \
--query "https://vm.aleo.org/api" \
--path "$HOME/leo_deploy/$NAME/build/" \
--broadcast "https://vm.aleo.org/api/testnet3/transaction/broadcast" \
--fee 6000000 \
--record "$RECORD"
Next we will see the word SUCCESSFUL
That's all…!!!
Donate - 0x1046394aBFfeec81Be8C48136745A4a46917CcbC
<100 subscribers
METAMAKS
No comments yet