1、btc節(jié)點部署文檔詳見btc節(jié)點部署
官方文檔
2、更改之前節(jié)點部署rpc訪問方式
下載bitcoin包后相對路徑:bitcoin-26.0/share/rpcauth/rpcauth.py 文件
執(zhí)行文件
~# python3 rpcauth.py admin
String to be appended to bitcoin.conf:
rpcauth=admin:sdoieoifjeofg30foreojvfklgjrgfjv$dfejfoejfoewrgvlrsegleworgjt485t425t594t4w5gtjreorhisfjwoqfqu9e4
Your password:
kZp_SDFWEFSsdfefa34t54adfvTRTHYThthserfefea_0
創(chuàng)建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代碼
根據(jù)情況,如果沒有rust環(huán)境執(zhí)行安裝文章來源:http://www.zghlxwxcb.cn/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數(shù)據(jù)文章來源地址http://www.zghlxwxcb.cn/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模板網以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網!