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
admin:sdoieoifjeofg30foreojvfklgjrgfjv$dfejfoejfoewrgvlrsegleworgjt485t425t594t4w5gtjreorhisfjwoqfqu9e4
注释掉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代码
根据情况,如果没有rust环境执行安装文章来源:https://www.toymoban.com/news/detail-792636.html
snap install --stable rustup --classic
rustup default stable
~# apt-get install gcc libssl-dev
~# git clone https://github.com/ordinals/ord.git
~# cd ord
~# cargo build --release
4、同步ordinals数据文章来源地址https://www.toymoban.com/news/detail-792636.html
# ./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
到了这里,关于ubuntu 20.04部署brc20 ordinals铭文的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!