比特币使用ord蚀刻符文---简单笔记

说明

毕竟符文热度过了,今年四月份做的笔记分享出来

蚀刻符文需要先同步完区块数据,和index文件,不然蚀刻会失败,在testnet和signet网络也一样。

创建钱包(会输出助记词):

powershell 复制代码
ord  --bitcoin-data-dir "I:\btc_data\blocks" --cookie-file "I:\btc_data\.cookie" wallet create

通过助记词回复钱包:

powershell 复制代码
ord --bitcoin-data-dir "I:\btc_data" --cookie-file "I:\btc_data\.cookie" wallet restore --from mnemonic

列出基本信息

powershell 复制代码
bitcoin-cli -rpccookiefile="I:\btc_data\.cookie" -getinfo

列出当前所有钱包

powershell 复制代码
bitcoin-cli -rpccookiefile="I:\btc_data\.cookie" listwallets

1:(后台运行bitcoin)

powershell 复制代码
bitcoind  -rpccookiefile="I:\btc_data\.cookie"  -datadir="I:\btc_data" -txindex

2:(输出当前区块高度)

powershell 复制代码
bitcoin-cli -rpccookiefile="I:\btc_data\.cookie"  -datadir="I:\btc_data" getblockcount

查看当前同步情况

powershell 复制代码
bitcoin-cli  -rpccookiefile="I:\btc_data\.cookie"  -datadir="I:\btc_data" getindexinfo

3:启动ord服务!!!!!!!!!!!!!!!!!!!!!!!!!!!

powershell 复制代码
ord --bitcoin-data-dir="I:\btc_data" --cookie-file="I:\btc_data\.cookie"  --index="I:\index\index.redb" --index-sats --index-runes server 

创建钱包并命名为ord_2:

powershell 复制代码
ord --bitcoin-data-dir "I:\btc_data" --cookie-file "I:\btc_data\.cookie" wallet --name ord_2 create

创建地址,接收资产,

powershell 复制代码
ord  --bitcoin-data-dir="I:\btc_data" --cookie-file="I:\btc_data\.cookie"  wallet receive
powershell 复制代码
ord --cookie-file="I:\btc_data\.cookie"  balances

打印所有交易:

powershell 复制代码
ord --bitcoin-data-dir="I:\btc_data" --cookie-file="I:\btc_data\.cookie" wallet transactions

重新检索区块:

powershell 复制代码
bitcoind -rpccookiefile="I:\btc_data\.cookie"  -datadir="I:\btc_data" -txindex -reindex

列出所有符文:

powershell 复制代码
ord --bitcoin-data-dir="I:\btc_data" --cookie-file="I:\btc_data\.cookie"  wallet runes

查看钱包余额:

powershell 复制代码
ord --bitcoin-data-dir="I:\btc_data" --cookie-file="I:\btc_data\.cookie"  wallet balance

ord wallet mint batch

铸造符文:

powershell 复制代码
ord --bitcoin-data-dir="I:\btc_data" --cookie-file="I:\btc_data\.cookie"  wallet mint --rune  XXX --fee rate 100

signet网络测试符文:

bitcoind -datadir="I:\S" -txindex -signet

ord --bitcoin-data-dir="I:\S\signet" --cookie-file="I:\S\signet\.cookie" --index-runes --index-sats --signet server

ord --bitcoin-data-dir="I:\S\signet" --cookie-file="I:\S\signet\.cookie" --signet wallet create

ord --bitcoin-data-dir="I:\S\signet" --cookie-file="I:\S\signet\.cookie" --signet wallet receive

ord --bitcoin-data-dir="I:\S\signet" --cookie-file="I:\S\signet\.cookie" --signet wallet balance

发行符文,需要会配置yml文件
ord --bitcoin-data-dir="I:\S\signet" --cookie-file="I:\S\signet\.cookie" --signet wallet batch --batch "I:\ord-0.18.2\example.yml" --fee-rate 100

yml规则:

蚀刻成功提交会输出下列数据:

Waiting for rune commitment 5209c32c59231ee67a6e5db827c41e11cc77ec24c3e8c366402ebabda6218b25 to mature...

{

"commit": "5209c32c59231ee67a6e5db827c41e11cc77ec24c3e8c366402ebabda6218b25",

"commit_psbt": null,

"inscriptions": [

{

"destination": "tb1pudmwu25cjqta25lp2hu5hjeathn8cfw6vks393fh76pjmjf8hzdsswzth2",

"id": "e072d994c80c4048928ef524f1340d9d328daecd4f033e5d79c093879a45554bi0",

"location": "e072d994c80c4048928ef524f1340d9d328daecd4f033e5d79c093879a45554b:0:0"

}

],

"parent": null,

"reveal": "e072d994c80c4048928ef524f1340d9d328daecd4f033e5d79c093879a45554b",

"reveal_broadcast": true,

"reveal_psbt": null,

"rune": {

"destination": "tb1plnw9kkfa4s2hjcaq5ant6j9lplp780qprqudamjyanu75h465qqqv0dhwf",

"location": "e072d994c80c4048928ef524f1340d9d328daecd4f033e5d79c093879a45554b:1",

"rune": "BE•FREEDOM•BE•BOSS"

},

"total_fees": 67800

}

举例说明:gas费为24聪,蚀刻BE•FREEDOM•BE•BOSS的符文
ord --bitcoin-data-dir="I:\S\signet" --cookie-file="I:\S\signet\.cookie" --signet wallet mint --fee-rate 24 --rune BE•FREEDOM•BE•BOSS

相关推荐
jackson凌25 分钟前
【Java学习笔记】SringBuffer类(重点)
java·笔记·学习
区块链蓝海38 分钟前
Fluence推出“Pointless计划”:五种方式参与RWA算力资产新时代
web3·区块链
huangyuchi.1 小时前
【Linux】LInux下第一个程序:进度条
linux·运维·服务器·笔记·进度条·c/c++
weixin_442316982 小时前
北京大学肖臻老师《区块链技术与应用》公开课:12-BTC-比特币的匿名性
区块链
大写-凌祁3 小时前
论文阅读:HySCDG生成式数据处理流程
论文阅读·人工智能·笔记·python·机器学习
Unpredictable2223 小时前
【VINS-Mono算法深度解析:边缘化策略、初始化与关键技术】
c++·笔记·算法·ubuntu·计算机视觉
傍晚冰川3 小时前
FreeRTOS任务调度过程vTaskStartScheduler()&任务设计和划分
开发语言·笔记·stm32·单片机·嵌入式硬件·学习
Love__Tay5 小时前
【学习笔记】Python金融基础
开发语言·笔记·python·学习·金融
半导体守望者5 小时前
ADVANTEST R3764 66 R3765 67爱德万测试networki connection programming网络程序设计手册
经验分享·笔记·功能测试·自动化·制造
柠石榴6 小时前
【论文阅读笔记】《A survey on deep learning approaches for text-to-SQL》
论文阅读·笔记·深度学习·nlp·text-to-sql