CAT20 铭文-分型比特币第一铭文MINT保姆级教程

CAT20 铭文-分型比特币第一铭文MINT保姆级教程

首先需要购买一台外网的VPS进行分型比特币的节点同步,建议购买bearhost服务器,
4折优惠链接:https://bearhost.us/#/?recommendCode=bithunter
购买配置:按月购买300G硬盘机器,仅仅要5美元+4美元安装费

一、首先安装 Docker


sudo apt-get update
sudo apt-get install docker.io -y

VERSION=$(curl --silent https://api.github.com/repos/docker/compose/releases/latest | grep -Po '"tag_name": "\K.*\d')

DESTINATION=/usr/local/bin/docker-compose
sudo curl -L https://github.com/docker/compose/releases/download/${VERSION}/docker-compose-$(uname -s)-$(uname -m) -o $DESTINATION
sudo chmod 755 $DESTINATION

sudo apt-get install npm -y
sudo npm install n -g
sudo n stable
sudo npm i -g yarn

二、安装CAT20环境

git clone https://github.com/CATProtocol/cat-token-box
cd cat-token-box
sudo yarn install
sudo yarn build


三、运行分型比特币节点

cd ./packages/tracker/
sudo chmod 777 docker/data
sudo chmod 777 docker/pgdata
sudo docker-compose up -d

四、创建本地索引器

cd ../../
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

五、修改gas费
根据网站最新gas费修改最高gas费
https://explorer.unisat.io/fractal-mainnet/block


cd packages/cli
vim config.json

六、钱包操作
cd ~/cat-token-box/packages/cli
1.创建钱包
sudo yarn cli wallet create


2.查看钱包地址
sudo yarn cli wallet address

3. 查看钱包余额
sudo yarn cli wallet balances

钱包未同步完成:

钱包已经同步完成:

六、开始打铭文
只有当钱包同步完成,才可以执行如下命令:
sudo yarn cli mint -i 45ee725c2c5993b3e4d308842d87e973bf1951f5f7a804b21e4dd964ecd12d6b_0 5


打完后,查询铭文余额

打完以后可以链上查询:
https://cat20.app/

Comments

No comments yet. Why don’t you start the discussion?

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注