比特币使用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

相关推荐
肖永威24 分钟前
macOS环境安装/卸载python实践笔记
笔记·python·macos
暗光之痕1 小时前
Unreal5研究笔记 Actor的生命周期函数
笔记·unreal engine
Gain_chance1 小时前
35-学习笔记尚硅谷数仓搭建-DWS层最近n日汇总表及历史至今汇总表建表语句
数据库·数据仓库·hive·笔记·学习
宵时待雨2 小时前
STM32笔记归纳9:定时器
笔记·stm32·单片机·嵌入式硬件
m0_719084112 小时前
React笔记张天禹
前端·笔记·react.js
r i c k4 小时前
数据库系统学习笔记
数据库·笔记·学习
shandianchengzi6 小时前
【小白向】错位排列|图文解释公考常见题目错位排列的递推式Dn=(n-1)(Dn-2+Dn-1)推导方式
笔记·算法·公考·递推·排列·考公
浅念-6 小时前
C语言编译与链接全流程:从源码到可执行程序的幕后之旅
c语言·开发语言·数据结构·经验分享·笔记·学习·算法
The森6 小时前
Linux IO 模型纵深解析 01:从 Unix 传统到 Linux 内核的 IO 第一性原理
linux·服务器·c语言·经验分享·笔记·unix
tq10866 小时前
Skills 的问题与解决方案
笔记