FFRCYPTO COMMUNITY
Chuẩn bị:
ETH ở mạng Polygon, hiện tại giá 1 key tầm 0.166250 ETH nếu đã áp mã giảm 5%. Ae có thể rút ETH theo mạng Base ra ví sau đó đi cầu Bungee sang WETH ở Polygon là được nhé.
Link cầu: https://www.bungee.exchange/
Tạo ví trắng mới ở Metamask hoặc ở web https://snapshotter-dashboard.powerloom.network/burner nhớ lưu lại key private ra file notepad để tí nữa copy cho tiện
Mua VPS ở contabo, ae có thể xem lại bài hdan mua node ở đây:
Tải phần mềm remote VPS: https://mobaxterm.mobatek.net/
Bước 1: Tiến hành mua key
Link mua: https://mint.powerloom.network/
Ae cần cbi WETH ở Polygon và 1 ít MATIC làm fee nhé
Nhập mã giảm giá: IF
Chọn số lượng key muốn mua => Nhập mã giảm giá sau đó tiền hành mua
Mua key thành công:
Bước 2: Connect với bảng trạng thái NODE và làm task
Điền địa chỉ ví Burner đã tạo ở phần chuẩn bị sau đó ấn Assign
Ấn Join discord dự án để lấy Roles Lite Snapshotter , follow twitter, điền email subcribe dự án
Bước 3: Chuẩn bị trước khi chạy NODE
Để tiến hành chạy node ae cần các thông số bên dưới:
RPC: có thể lấy ở RPC của alchemy https://www.alchemy.com/
Public key và Private Key của ví Burner cái này ae đã làm và lưu lại ở bước đầu
NFT ID anh em có thể check ở trang trạng thái của powerloom tương ứng với slot ID
Bước 4: Chạy node
Mở mobaxterm sau đó tiến hành kết nối với VPS đã mua sẵn ở Bước 1
Thực hiện lần lượt các lệnh sau:
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install git -y
sudo apt-get update
sudo apt install screen
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
Bước này để copy chuẩn hơn ae có thể check qua guide của dự án nhé: https://docs.powerloom.io/docs/build-with-powerloom/snapshotter-node/lite-node/getting-started/ mục 3. Install Docker and Docker Compose:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \ $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
Bước này nếu anh em nào mua nhiều key thì cần phải làm lần lượt các lệnh sau (giả sử cho 3 node nếu 1 node chỉ cần gõ 1 lệnh đầu):
git clone https://github.com/PowerLoom/snapshotter-lite powerloom-testnet # for node1
git clone https://github.com/PowerLoom/snapshotter-lite powerloom-testnet1 # for node2
git clone https://github.com/PowerLoom/snapshotter-lite powerloom-testnet2 # for node3
Cài đặt cho node1
screen -S power1
cd powerloom-testnet
./build.sh
Bước này sẽ điền lần lượt các thông số RPC, Public Key, Private Key của ví Burner và NFT ID đã lấy ở bước 3
Xong phần này sẽ cần đợi 1 lúc để tải và cài đặt node, ae đợi có log như hình bên dưới thì ấn tổ hợp phím Ctrl + A + D để tiến hành cài đặt NFT thứ 2,3,...
Cài đặt cho node 2
screen -S power2
cd powerloom-testnet1
./build.sh
Nhập lại thông số như ở node 1, làm lần lượt với node 3
Bước 5: KYC và theo dõi trạng thái node
Truy cập lại trang quản lý node check xem trạng thái node đã up chưa như hình là đã live => Chọn vào Finish KYC
Đợi duyệt KYC
Anh em có thể vào lại trang screen của Node để check trạng thái node bằng cách sau:
screen -x power1 # For node1
# or
screen -x power2 # For node2
Cách update node khi có version mới, vào lại screen 1 node sau đó gõ lần lượt các lệnh sau:
screen -x power1
Ctrl + C
docker compose up -d
./build.sh