ubuntu 20.04部署brc20 ordinals铭文
1、btc节点部署文档详见btc节点部署
官方文档
2、更改之前节点部署rpc访问方式
下载bitcoin包后相对路径:bitcoin-26.0/share/rpcauth/rpcauth.py 文件
执行文件
~# python3 rpcauth.py admin
String to be appended to bitcoin.conf:
rpcauth=admin:sdoieoifjeofg30foreojvfklgjrgfjv$dfejfoejfoewrgvlrsegleworgjt485t425t594t4w5gtjreorhisfjwoqfqu9e4
Your password:
kZp_SDFWEFSsdfefa34t54adfvTRTHYThthserfefea_0
创建cookie文件
vim /data/btc/btcdata/.cookie
rpcauth=admin:sdoieoifjeofg30foreojvfklgjrgfjv$dfejfoejfoewrgvlrsegleworgjt485t425t594t4w5gtjreorhisfjwoqfqu9e4
Your password:
kZp_SDFWEFSsdfefa34t54adfvTRTHYThthserfefea_0
注释掉bitcoin.conf的账号密码
cat conf/bitcoin.conf
#rpcuser=admin
#rpcpassword=4R7eerRfevb2053F
#rpcauth=admin:sdoieoifjeofg30foreojvfklgjrgfjv$dfejfoejfoewrgvlrsegleworgjt485t425t594t4w5gtjreorhisfjwoqfqu9e4
#Your password:kZp_SDFWEFSsdfefa34t54adfvTRTHYThthserfefea_0
server=1
rpcallowip=0.0.0.0
rpcbind=0.0.0.0
rpcport=8XXX
port=AAAA
txindex=1
datadir=/data/btc/btcdata
3、编译ordinals代码
~# apt-get install libssl-dev
~# git clone https://github.com/ordinals/ord.git
~# cd ord
~# cargo build --release
4、同步ordinals数据
# ./ord --cookie-file=/data/btc/btcdata/.cookie --rpc-url=127.0.0.1:8XXX server
Index file `/root/.local/share/ord/index.redb` needs recovery. This can take a long time, especially for the --index-sats index.
Listening on http://0.0.0.0:80