# Ordinals搭建全节点教程 **Published by:** [arant.eth](https://paragraph.com/@arant/) **Published on:** 2023-03-17 **URL:** https://paragraph.com/@arant/ordinals ## Content 1.硬件条件 1T固态硬盘,不推荐使用机械硬盘,同步数据太慢。 2.需要安装软件: 操作系统:建议使用window10系统,苹果系统好几个朋友都出现各种问题。钱包版本问题,浪费很长时间同步最后都放弃。 BTC全节点钱包:下载 BitcoinCore https://bitcoincore.org/en/download/下载最新版本的钱包下载完成后执行安装程序选择安装钱包文件夹,不建议放在默认C盘里。 默认安装安装完成修改安装目录,将目录放在1TB硬盘中。将区块链存储限制一定得去掉,因为我们需要同步全节点的数据。如下图需要500G,所有需要1T的硬盘。然后等待区块同步,大概需要10到20个小时左右。 同步完成后打开,btc文件下btccoin.conf文件 中#tindex=1 找到窗口→控制台→输入获取区块高度信息 输入getindexinfo 同步区块高度。 安装ordinals 下载ordinals钱包:在github上找到最新版本下载。 https://github.com/casey/ord/ 下载解压完成后,需要配置环境变量。 在安装目录下指定钱包环境变量。打开命令窗口:输入 ord --version 可以看到版本号,安装成功。创建一个BTC钱包: 在btc安装目录下创建一个自己的钱包ordWallet,切记一定要保管好自己的钱包。ord --wallet ordWallet -bitcoin-data-dir E:\BitCoinData wallet create 由于ord需要全部index,在bitCoinData目录下创建一个inedxe文件。 会有一个index.redb文件。(这个需要很久,也可以直接在github 上找一个最近的时间的下载来了就不需要从0块开始同步了) ord --cookie-file "E:\btc\Bitcoin.cookie" --data-dir "E:\btc\Bitcoin\inedxe" index查看一些常用的帮助命令: ord --cookie-file “e:\btc\Bitcoin\.cookie” data-dir “E:\btc\Bitcoin\index” --wallet ordWallet --help想查询每一个命令如下: ord --cookie-file “E:\btc\Bitcoin\.cookie” data-dir “E:\btc\Bitcoin\index” --wallet ordWallet inscribe -h 环境已经搭建完成了,需要反复去读Ordinals的帮助文档。避免浪费btc出错,建议读文档了解原理后才开始自己的第一个 inscribe Ordinals 帮助文档: https://docs.ordinals.com/ ## Publication Information - [arant.eth](https://paragraph.com/@arant/): Publication homepage - [All Posts](https://paragraph.com/@arant/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@arant): Subscribe to updates