banner
荨麻疹

荨麻疹

在外务工人员

Atomicals

image

官方
X Doc Github

生态
钱包 市场 余额 数据

2b 市场

CLI

下载安装 node

https://nodejs.org/en/download/current

Windows Installer
https://nodejs.org/dist/v21.1.0/node-v21.1.0-x64.msi

macOS Installer
https://nodejs.org/dist/v21.1.0/node-v21.1.0.pkg

复制链接下载 cli

https://github.com/atomicals/atomicals-js/archive/refs/heads/master.zip

解压至指定文件夹

在此文件夹地址栏输入 cmd

image

依次键入以下进行封装

npm install -g yarn

yarn install

npm run build

image

创建钱包以及常用指令 ❤️‍🔥

保存好你的助记词 (phrase [第 1 行] 或 私钥 (wif [第 4 行])


951eeb3db83c0ce0504817300b6e34b

#Initializes a new wallet at wallet.json
yarn cli wallet-init

#Mint (mint-dft)
yarn cli mint-dft <tick>

#Mint (mint-dft,satsbyte)
yarn cli mint-dft <tick> --satsbyte <gas>

#Direct Mint
yarn cli mint-ft <tick> <total_supply> <image.jpg>

#Get balances and atomicals stored
yarn cli balances

#Get Atomical by ticker name
yarn cli get-ticker atom

#display help for command
yarn cli -h

#Mint NFT Item
yarn cli mint-item "#container-name" "item-name" "path/to/item-name.json" --satsbyte=1

#Query the status of a single item
yarn cli get-container-item "#container-name" "test-item-4"

#Query Minted Items
yarn cli get-container-items "#container-name" limit offset

全部指令 ❤️‍🔥

yarn cli server-version:获取electrumx服务器版本信息
yarn cli wallet-create:创建并显示新的12字秘密助记词,以及主要和资金地址
yarn cli wallet-decode [options] <phrase>:解码秘密助记词以显示提供路径的派生地址和密钥
yarn cli wallet-init:在wallet.json中初始化新钱包
yarn cli wallet-import <wif> <alias>:通过WIF导入钱包并将其分配给提供的别名
yarn cli address-script <addressOrAlias>:将地址或钱包别名编码为十六进制输出脚本
yarn cli address [options] <address>:获取地址的余额和Atomicals
yarn cli wallets [options]:获取内部钱包的余额和atomicals
yarn cli balances [options]:获取内部钱包的余额和atomicals
yarn cli address-utxos <address>:列出地址所有的utxos
yarn cli address-history <address>:列出地址的历史记录
yarn cli tx [options] <txid>:获取任何交易
yarn cli get-ticker [options] <ticker>:通过ticker名称获取Atomical
yarn cli get-container [options] <container>:通过容器名称获取Atomical
yarn cli resolve [options] <realm_or_subrealm>:解析领域或子领域。等同于'get-realm'
yarn cli get-realm [options] <realm_or_subrealm>:解析领域或子领域。等同于'resolve'
yarn cli realm-info [options] <atomicalIdAlias>:获取atomical的领域和子领域信息
yarn cli summary-subrealms [options]:显示钱包拥有的子领域摘要
yarn cli summary-containers [options]:显示钱包拥有的容器摘要
yarn cli summary-realms [options]:显示钱包拥有的领域摘要
yarn cli summary-tickers [options]:显示钱包拥有的由tickers拥有的令牌摘要
yarn cli find-tickers [options]:搜索tickers
yarn cli find-realms [options]:搜索领域
yarn cli find-containers [options]:搜索容器
yarn cli set [options] <atomicalIdAlias> <path> <data...>:使用数据更新现有的Atomical。
yarn cli emit [options] <atomicalIdAlias> <path> <data...>:为现有的Atomical发出事件。
yarn cli set-relation [options] <atomicalId> <relationName> <relationValues...>:为现有的Atomical设置关系。
yarn cli delete [options] <atomicalIdAlias> <path> <keystoDelete...>:删除现有Atomical的键。
yarn cli seal [options] <atomicalIdAlias>:永久封存任何NFT Atomical类型,使其无法再次更新或转移。
yarn cli splat [options] <locationId>:从包含多个Atomicals的UTXO中提取NFT Atomical
yarn cli split [options] <locationId>:分割操作以分离单个UTXOs的FT Atomicals。
yarn cli get [options] <atomicalAliasOrId>:获取Atomical的状态
yarn cli global [options]:获取全局状态
yarn cli location [options] <atomicalAliasOrId>:获取Atomical的位置
yarn cli state [options] <atomicalAliasOrId> <path>:获取Atomical的状态
yarn cli state-history [options] <atomicalAliasOrId>:获取Atomical的状态历史记录
yarn cli event-history [options] <atomicalAliasOrId>:获取Atomical的事件状态历史记录
yarn cli enable-subrealms [options] <realmOrSubRealm> <rules...>:为领域或子领域设置并启用子领域铸币规则
yarn cli disable-subrealm-mints [options] <realmOrSubRealm>:删除领域或子领域的子领域铸币规则
yarn cli pending-subrealms [options]:显示待处理的子领域Atomical请求并进行付款
yarn cli mint-ft [options] <ticker> <supply> <files...>:铸造直接发行模式下的可替代代币(FT)Atomical
yarn cli init-dft [options] <ticker> <mint_amount> <max_mints> <mint_height> <files...>:初始化可替代代币(FT)atomical的分散发行模式
yarn cli mint-dft [options] <ticker>:为分散的可替代代币(FT)铸造硬币
yarn cli mint-nft [options] <files...>:铸造非替代代币(NFT)Atomical
yarn cli mint-realm [options] <realm>:铸造顶级领域非替代代币(NFT)Atomical
yarn cli mint-subrealm [options] <realm>:铸造子领域非替代代币(NFT)Atomical
yarn cli mint-container [options] <container>:铸造容器非替代代币(NFT)Atomical
yarn cli transfer-nft [options] <atomicalId> <address>:将Atomical NFT转移到新地址
yarn cli transfer-ft [options] <atomicalId>:将Atomical FT转移到其他地址
yarn cli transfer-utxos [options]:将普通UTXOs转移到其他地址
yarn cli merge-atomicals [options]:为测试目的将Atomicals UTXOs合并在一起
yarn cli tx-history [options] <atomicalAliasOrId>:获取Atomical的历史记录
yarn cli list [options]:列出全球铸造的Atomicals的信息流
yarn cli address-atomicals <address>:列出地址所有的atomicals
yarn cli at-location <location>:获取utxo位置的Atomicals
yarn cli store-dat [options] <files...>:存储不是NFT或FT的常规不可变数据交易
yarn cli download [options] <locationIdOrTxId>:从locationId或atomicalId下载文件
yarn cli help [command]:显示命令的帮助

INDEX

https://github.com/atomicals/atomicals-electrumx/tree/master

公共节点 ❤️‍🔥

  1. https://ep.atomicals.xyz
    心跳检测
  2. https://ep.atomicalmarket.com
    心跳检测
  3. https://ep.nextdao.xyz
    心跳检测
  4. https://ep.atomicalmarket.com/
    心跳检测

自建节点

使用 Next Dao
https://github.com/Next-DAO/atomicals-electrumx-docker#atomicals-electrumx-docker

更新您的比特币全节点 RPC 设置,如果已设置,请跳过。

将其添加到您的 bitcoin.conf 中,然后重新启动您的比特币完整节点。需等待节点重新索引。

假设你的局域网 IP 是 192.168.50.2

txindex=1
rpcauth=electrumx:c7ed296134ebe0035d9ff786dfa102b5$9d40e8e36bcdba1e3ca0a79178c3864c3deaa9e6fd484ff683e7770690a97097

rpcbind=127.0.0.1
rpcbind=192.168.50.2
rpcallowip=127.0.0.1
rpcallowip=192.168.50.2

ElectrumX 需要 txindex=1 才能工作。您需要等待完整节点重新索引。

或者重新下载并生成
https://github.com/bitcoin/bitcoin/blob/master/share/rpcauth/rpcauth.py

克隆此存储库并运行服务器

git clone https://github.com/lucky2077/atomicals-electrumx-docker.git

cd atomicals-electrumx-docker

创建一个 .env 文件,内容如下:
DAEMON_URL=electrumx:[email protected]:8332

然后运行 ​​ElectrumX 服务器:
docker-compose pull && docker-compose up -d

docker-compose logs -f 检查日志
docker-compose down 停止服务器

BAT❤️‍🔥

Windows

@echo off
setlocal enabledelayedexpansion

echo 请输入循环次数:
set /p loop_count=

echo 请输入 token 名字:
set /p token_value=

echo 请输入 satsbyte 值 (实际 gas 的 1.5-1.7 倍):
set /p satsbyte_value=

for /l %%i in (1, 1, %loop_count%) do (
  echo 第 %%i 次执行命令:
  yarn cli mint-dft !token_value! --satsbyte !satsbyte_value!
)

Mac

#!/bin/bash

echo "请输入循环次数:"
read loop_count

echo "请输入 token 名字:"
read token_value

echo "请输入 satsbyte 值:(实际gas的1.5-1.7倍)"
read satsbyte_value

for ((i=1; i<=$loop_count; i++)); do
  echo "第 $i 次执行命令:"
  yarn cli mint-dft "$dmint_value" --satsbyte "$satsbyte_value"
done
Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.