# 分型网络全节点+铭文教程v1.0 **Published by:** [yafon.eth](https://paragraph.com/@yafon/) **Published on:** 2024-09-15 **URL:** https://paragraph.com/@yafon/v1-0 ## Content 最近马上Fractal network-main 马上要到21000区块了,随着CAT20、fractal404等打新活动的Fomo,为了大家迎接更好行情准备好全节点的硬件设施,现在就开始我们今天的教程吧。 大家可以最好是开一个vps来跑,目前Fractal的源码上已经更新:fractald-release-v0.2.1 以下是教程:1. 环境配置在这个过程中,安装Docker、docker-compose(如果你不用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 2. 安装Fracal 节点2.1 直接安装下载发布的版本包wget https://github.com/fractal-bitcoin/fractald-release/releases/download/v0.2.1/fractald-0.2.1-x86_64-linux-gnu.tar.gz 解压这个文件tar -zxvf fractald-0.2.1-x86_64-linux-gnu.tar.gz 跳转到这个文件夹cd fractald-0.2.1-x86_64-linux-gnu 创建 data 文件夹mkdir data cp ./bitcoin.conf ./data 开始同步节点./bin/bitcoind -datadir=./data/ -maxtipage=504576000 2.2 Docker版本(不用Docker的就忽略掉)Git这个版本git clone https://github.com/fractal-bitcoin/fractald-release.git 切换到指定文件cd fractald-docker 通过 Docker Compose运行服务docker-compose up -d 同步画面:同步区块中3. 安装ord安装ordcurl --proto '=https' --tlsv1.2 -fsLS https://ordinals.com/install.sh | bash -s 查看版本号ord --version 需要设置在Fracal的主网上ord server --chain=fractal-mainnet 注意:需要同步ord和bitcoind(Fracal网络)节点ord需要一个带有-txindex选项的同步bitcoind节点来构建聪位置的索引。 ord通过RPC与bitcoind通信。 如果bitcoind由同一用户在本地运行,无需额外配置,ord应该能够自动找到它,方法是从bitcoind的数据目录读取.cookie文件,并使用默认RPC端口连接。 如果bitcoind不在主网上,不是由同一用户运行,有非默认的数据目录,或非默认端口,你需要向ord传递额外的标志。 bitcoind RPC认证 ord向bitcoind发起RPC调用,这通常需要用户名和密码。 默认情况下,ord在bitcoind创建的cookie文件中查找用户名和密码。 可以使用--cookie-file配置cookie文件路径:ord --cookie-file /path/to/cookie/file server 或者,可以在命令行上为ord提供用户名和密码:ord --bitcoin-rpc-username foo --bitcoin-rpc-password bar server 使用环境变量:export ORD_BITCOIN_RPC_USERNAME=foo export ORD_BITCOIN_RPC_PASSWORD=bar ord server 或在配置文件中:bitcoin_rpc_username: foo bitcoin_rpc_password: bar 注意:为了你的铭文安全,请一定要看这里Bitcoin Core不了解铭文(inscriptions)并且不执行聪控制。使用bitcoin-cli命令和RPC调用ord钱包可能导致铭文丢失。ord wallet命令自动加载由--name选项指定的ord钱包,默认为'ord'4. 打铭文的命令ord --wallet sp wallet create // 指定 test1 ord --wallet test1 wallet balance // 建立钱包 ord --wallet create // 获取地址 ord --bitcoin-data-dir "D:\\bitcoin\\blocks" --cookie-file "D:\\bitcoin\\.cookie" wallet receive // 获取余额 ord --bitcoin-data-dir "D:\\bitcoin\\blocks" --cookie-file "D:\\bitcoin\\.cookie" --data-dir "D:\\bitcoin\\ord\\data" wallet balance // 打铭文 ord --bitcoin-data-dir "D:\\bitcoin\\blocks" --cookie-file "D:\\bitcoin\\.cookie" --data-dir "D:\\bitcoin\\ord\\data" wallet inscribe --fee-rate 7 D:\\bitcoin\\ord\\inscriptions\\xxx // 查看铭文 ord --bitcoin-data-dir "D:\\bitcoin\\blocks" --cookie-file "D:\\bitcoin\\.cookie" --data-dir "D:\\bitcoin\\ord\\data" wallet inscriptions // 发送铭文 ord --bitcoin-data-dir "D:\\bitcoin\\blocks" --cookie-file "D:\\bitcoin\\.cookie" --data-dir "D:\\bitcoin\\ord\\data" wallet send --fee-rate <address> <inscriptions ID> 以下这个网站可以看到铭文铭刻的进度 https://ordinals.fractalbitcoin.io/ ## Publication Information - [yafon.eth](https://paragraph.com/@yafon/): Publication homepage - [All Posts](https://paragraph.com/@yafon/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@yafon): Subscribe to updates