Mới đây Subspace Network đã công bố Gemini II Incentivized Testnet để kiểm tra chức năng farming trên mạng lưới với phần thưởng vô cùng hấp dẫn. Khác với những dự án mình đã hướng dẫn anh em chạy node, riêng dự án này nếu anh em tham gia testnet chắc chắn sẽ có phần thưởng. Dưới đây mình sẽ hướng dẫn anh em chạy Gemini II Incentivized Testnet nhé!!!
Subspace là một giao thức Layer-0 được phát triển bởi Subspace Labs, nó có thể tương tác với bất kỳ layer nào, cho phép nó hoạt động như một lớp cơ sở hạ tầng cho toàn bộ hệ sinh thái Web3. Anh em có thể tìm hiểu thêm về dự án này tại đây.
Tạo Ví testnet
– Anh em sử dụng Subwallet để tham gia chạy node nhé!
– Link tải ví tại đây.
– Quá trình tạo ví tương tự metamask. Anh em nhớ lưu private key vì đây là ví để nhận incentive sau này.
– Trong quá trình tạo ví, anh em lưu ý bật các network testnet của Subspace như hình bên dưới:
– Sau đó anh em tiến hành tạo account polkadot trên polkadot Js. Link tạo account tại đây.
Chạy Node farming
Bước 1: Truy cập vào máy ảo bằng Terminal (MacOS) hoặc Putty (Window)
B2: Cập nhập Packages
– Đầu tiên anh em chạy dòng lệnh sau:
sudo apt update && sudo apt upgrade -y
– Tiếp theo là chạy dòng lệnh bên dưới:
sudo apt install curl ncdu htop git wget -y
Bước 3: Cài đặt docker
cd $HOME
apt update && apt purge docker docker-engine docker.io containerd docker-compose -y rm /usr/bin/docker-compose /usr/local/bin/docker-compose curl -fsSL https://get.docker.com -o get-docker.sh sh get-docker.sh
curl -SL https://github.com/docker/compose/releases/download/v2.5.0/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
docker-compose –version
– Tạo các biến:
NODENAME=”Đặt tên tuỳ ý anh em“
ADDRESS=”địa chỉ ví Subspace Gemini 2a“
PLOT_SIZE=”480G”
– Viết các biến để bash
echo “export NODENAME=$NODENAME” >> $HOME/.bash_profile
echo “export ADDRESS=$ADDRESS” >> $HOME/.bash_profile
echo “export PLOT_SIZE=$PLOT_SIZE” >> $HOME/.bash_profile
source $HOME/.bash_profile
– Kiểm tra các biến:
cat $HOME/.bash_profile
– Tạo thư mục:
mkdir $HOME/subspace && cd $HOME/subspace
Bước 4: Tạo file docker và không thay đổi
tee $HOME/subspace/docker-compose.yml > /dev/null <<EOF
version: “3.7”
services:
node:
# For running on Aarch64 add ‘-aarch64’ after ‘DATE’
image: ghcr.io/subspace/node:gemini-2a-2022-sep-10
volumes:
# Instead of specifying volume (which will store data in ‘/var/lib/docker’), you can
# alternatively specify path to the directory where files will be stored, just make
# sure everyone is allowed to write there
– node-data:/var/subspace:rw
# – /path/to/subspace-node:/var/subspace:rw
ports:
# If port 30333 is already occupied by another Substrate-based node, replace all
# occurrences of ‘30333’ in this file with another value
– “0.0.0.0:30333:30333”
restart: unless-stopped
command: [
“–chain”, “gemini-2a”,
“–base-path”, “/var/subspace”,
“–execution”, “wasm”,
“–state-pruning”, “archive”,
“–port”, “30333”,
“–rpc-cors”, “all”,
“–rpc-methods”, “safe”,
“–unsafe-ws-external”,
“–validator”,
# Replace ‘INSERT_YOUR_ID’ with your node ID (will be shown in telemetry)
“–name”, “$NODENAME”
]
healthcheck:
timeout: 5s
# If node setup takes longer then expected, you want to increase ‘interval’ and ‘retries’ number.
interval: 30s
retries: 5
farmer:
depends_on:
node:
condition: service_healthy
# For running on Aarch64 add ‘-aarch64’ after ‘DATE’
image: ghcr.io/subspace/farmer:gemini-2a-2022-sep-10
volumes:
# Instead of specifying volume (which will store data in ‘/var/lib/docker’), you can
# alternatively specify path to the directory where files will be stored, just make
# sure everyone is allowed to write there
– farmer-data:/var/subspace:rw
# – /path/to/subspace-farmer:/var/subspace:rw
ports:
# Un-comment following line to unlock farmer’s RPC
# – “127.0.0.1:9955:9955”
# If port 40333 is already occupied by something else, replace all
# occurrences of ‘40333’ in this file with another value
– “0.0.0.0:40333:40333”
restart: unless-stopped
command: [
“–base-path”, “/var/subspace”,
“farm”,
“–node-rpc-url”, “ws://node:9944”,
“–ws-server-listen-addr”, “0.0.0.0:9955”,
“–listen-on”, “/ip4/0.0.0.0/tcp/40333”,
# Replace ‘WALLET_ADDRESS’ with your Polkadot.js wallet address
“–reward-address”, “$ADDRESS”,
“–plot-size”, “$PLOT_SIZE”
]
volumes:
node-data:
farmer-data:
EOF
cd $HOME/subspace && docker-compose up -d
– Kiểm tra nhật ký:
cd $HOME/subspace && docker-compose logs –tail=100 -f
– Kiểm tra nhật ký farmer:
cd $HOME/subspace && docker-compose logs -f | grep subspace-farmer-1
– Tới bước này là thành công nhé! Anh em có thể check balance của mình tại đây.
Lời kết
Trên đây là hướng dẫn anh em tham gia testnet của Subspace Network. Anh em nếu có khả năng nên tham gia để kiếm phần thưởng từ dự án. Dự án đã công bố sẽ airdrop nên anh em nào tham gia thì chắc chắn sẽ có reward nhé. Thông tin về reward cho anh em:
Xin chào và hẹn gặp lại anh em ở những bài viết sau.
Disclaimer: Giao dịch tiền điện tử có mức độ rủi ro cao và có thể không phù hợp với tất cả các nhà đầu tư. CryptoViet sẽ không chịu trách nhiệm pháp lý đối với bất kỳ tổn thất hoặc thiệt hại nào có thể phát sinh trực tiếp hoặc gián tiếp từ việc sử dụng hoặc phụ thuộc vào những thông tin trên. Tất cả các ý kiến được bày tỏ trên trang web này thuộc sở hữu của người viết và không bao giờ được coi là lời khuyên dưới bất kỳ hình thức nào.
Trả lời