Create tool and worker wallet
Cài allorad:
curl -sSL https://raw.githubusercontent.com/allora-network/allora-chain/main/install.sh | bash -s -- v0.2.7Kết quả cài đặt thành công ví dụ như sau:
Installation complete. The allorad is now available in /root/.local/bin
To make allorad available from any terminal session, add the following line to your .bashrc or .zshrc:
export PATH="$PATH:/root/.local/bin"Thêm vào file .bashrc để có thể sử dụng allorad từ mọi terminal:
vi ~/.bashrcNhấn
iđể chuyển sang chế độ chỉnh sửa.
Thêm dòng sau vào cuối file, ở ví dụ trên là:
export PATH="$PATH:/root/.local/bin"Lưu và thoát bằng cách nhấn
Escsau đó gõ:wqvà nhấnEnter. (Để thoát mà không lưu, nhấnEscsau đó gõ:q!và nhấnEnter)
Load lại file .bashrc:
source ~/.bashrcTạo một ví mới cho worker node:
allorad keys add net1_workerNhập 2 lần mật khẩu mới cho ví mới tạo, nhớ để truy cập vào ví sau này.
Lưu lại các thông tin ví mới vào file txt, quan trọng là:
addressvà24 từ mnemonic.
Dùng faucet để nhận uallo: (Địa chỉ ví address ở lệnh phía trên)
address ở lệnh phía trên)Mỗi topic khi chạy lần đầu worker sẽ gởi tx đăng ký topic đó nên cần có uallo để gởi tx.
Vào https://faucet.testnet-1.testnet.allora.network/ để nhận uallo. Faucet thành công như hình dưới:

Nếu bị lỗi không faucet được thì thử lại nhiều lần, sau đó thực hiện lệnh dưới để kiểm tra số dư ví: (thay
<địa chỉ ví>thành địa chỉ ví của bạn)
allorad query bank balances <địa chỉ ví> --node=https://allora-rpc.testnet-1.testnet.allora.networkXem lại ví đã tạo:
allorad keys listCài đặt Git và Docker
Cài đặt Git:
sudo apt update
sudo apt install gitKiểm tra Git đã cài đặt thành công:
git --versionCài đặt Docker:
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install docker-ce -yKiểm tra Docker đã cài đặt thành công:
Kiểm tra trạng thái Docker:
sudo systemctl status dockerẤn q để thoát.
Kiểm tra phiên bản Docker:
docker --versionKết quả trả về ví dụ: Docker version 26.1.4, build 5650f9b
Last updated
Was this helpful?