CAT20 超级火爆,总量 2100 万枚,现在已经 Mint 掉 50%。没时间废话,直接上保姆级教程。
$FB 代币购买渠道:
PS:Mobaxterm 出现 Access denied 报错:
说明你的用户名没有跟 VPS 保持一致,以下是 VPS 连接成功的界面:
sudo apt update && sudo apt install -y curl && curl -fsSL https://get.docker.com -o get-docker.sh && sudo sh get-docker.sh
sudo curl -L "https://github.com/docker/compose/releases/download/$(curl -s https://api.github.com/repos/docker/compose/releases/latest | grep 'tag_name' | cut -d\" -f4)/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo apt-get install npm -y
sudo npm i n -g
sudo n stable
sudo npm i -g yarn
git clone https://github.com/CATProtocol/cat-token-box && cd cat-token-box
sudo chown -R $USER:$USER ~/cat-token-box
sudo yarn install && yarn build
cd packages/tracker
sudo chmod 777 docker/data && sudo chmod 777 docker/pgdata && sudo docker compose up -d
cd $HOME/cat-token-box && sudo docker build -t tracker:latest .
sudo docker run -d \
--name tracker \
--add-host="host.docker.internal:host-gateway" \
-e DATABASE_HOST="host.docker.internal" \
-e RPC_HOST="host.docker.internal" \
-p 3000:3000 \
tracker:latest
cd $HOME/cat-token-box/packages/cli
cat <<EOF > config.json
{
"network": "fractal-mainnet",
"tracker": "http://127.0.0.1:3000",
"dataDir": ".",
"maxFeeRate": 30,
"rpc": {
"url": "http://127.0.0.1:8332",
"username": "bitcoin",
"password": "opcatAwesome"
}
}
EOF
sudo yarn cli wallet create
cat <<EOF > wallet.json
{
"accountPath": "m/86'/0'/0'/0/0",
"name": "cat-5d0fe77c",
"mnemonic": "YOUR TAPROOT ADDRESS MNEMONIC PHRASE"
}
EOF
sudo yarn cli wallet address
sudo yarn cli wallet balances
dpkg -l | grep -q '^ii curl ' || sudo apt-get install -y curl && dpkg -l | grep -q '^ii jq ' || sudo apt-get install -y jq
watch -n 5 "yarn cli mint --fee-rate "ваш газ" -i 45ee725c2c5993b3e4d308842d87e973bf1951f5f7a804b21e4dd964ecd12d6b_0 5"
在显示“ваш газ”的地方,输入 gas 数并删除引号。
以 gas 为 100 为例:
watch -n 5 "yarn cli mint --fee-rate 100 -i 45ee725c2c5993b3e4d308842d87e973bf1951f5f7a804b21e4dd964ecd12d6b_0 5"
sudo yarn cli wallet balances
以上就是今天的全部教程,部署过程中会遇到很多报错,记得用 AI 来修改。
【免责声明】市场有风险,投资需谨慎。本文不构成投资建议,用户应考虑本文中的任何意见、观点或结论是否符合其特定状况。据此投资,责任自负。