思路来自neal-zhu / atomicals-miner,感谢其作者@0xKISS的付出。
与neal-zhu / atomicals-miner一样,本项目也:
- 这是一个有偿使用的软件,每一次使用本软件进行挖矿,会收取
0.000045 BTC (约合不到 $2)0.000030 BTC (约合不到 $1.3),在挖矿时会自动将手续费打到作者的地址. 如果没有挖到,不需要支付这笔手续费会持续更新这个代码进行优化,甚至已经有很多优化项在构思实施中- 程序并不开源,为了安全起见,请务必不要在使用的地址放太多资产
- 使用时,请务必先进行测试,确保资产安全以及行为符合预期以后,再继续使用.也推荐大家与官方版本的性能进行对比,看看是否值得使用
- 当前版本比官方版本快大概 30-40x
以后的其他 token 同样可以使用本软件- 本人不对此软件使用导致的资产损失承担任何责任。我唯一可以保证的是这个软件没有任何后门
- 如果有任何问题,请在推特上联系作者
https://twitter.com/0xKISS@GoudanWoo- windows 电脑上可能会引起杀毒软件报警(甚至删掉代码文件),需要选择忽略和信任。如果介意,请不要使用。如果要使用,可以选用一台虚拟机,保证不要有其他核心资产
- 请不要使用这个软件进行除 mint-dft 以外的操作,因为涉及到大量代码改动,不保证其他命令还是正确的。如果需要使用,请使用官方的代码
- 再次重申,这是一个旨在于帮助用户提供帮助同时收取很低费用的软件。它是安全的,但是请对自己的资产安全负责
不过相比于neal-zhu / atomicals-miner,本项目:
- 在速度上更快(只快了10%左右),且速度也更稳定(可自行对比)
- 核心二进制程序体积更大(大了40%左右)
- 收取的费用更低
- 看起来更容易跑路
欢迎自行对比尝试。
- 复制.env.example为
.env
- 在.env中修改
GOWORKER_BIN
为自己系统和架构的文件- Windows选择
atomicals-go-windows-
开头的;x64
架构选择-amd64.exe
结尾的,arm64
架构选择-arm64.exe
结尾的 - Linux选择
atomicals-go-linux-
开头的;x64
架构选择-amd64.exe
结尾的,arm64
架构选择-arm64.exe
结尾的 - MacOS选择
atomicals-go-darwin-
开头的;x64
架构选择-amd64.exe
结尾的,m1
/m2
芯片选择-arm64.exe
结尾的
- Windows选择
- 在.env中修改
COMMISSION
为自己期望的抽成,默认3000
(0.000030 BTC,约合不到 $1.3)) - 在.env中修改
CONCURRENCY
为自己期望的线程数,默认为系统CPU线程数 - 执行
npm install
或yarn install
或pnpm install
- 执行
npm build
或yarn build
或pnpm build
- 执行
npm cli xxx
或yarn cli xxx
或pnpm cli xxx
,如yarn cli mint-dft quark --satsbyte 110
熟悉 Docker 的技术人员也可以通过
docker compose run xxx
进行执行,如docker compose run mint-dft quark --satsbyte 110
,环境变量请自行添加参数进行修改
直接依次执行下面代码,可以更新和覆盖本地版本
如有自己改动过的代码,直接执行此命令可能会导致改动丢失,请自行寻找保留自己改动的方法
git fetch --all
git reset --hard origin/master
git pull
- 抽成(
COMMISSION
)最低也是3000
,改为更低并不能真正生效,而且会导致无法正常 mint - 抽成地址在ts中有写,但是改了也并不能真正生效,而且会导致无法正常 mint
- 关于命令参数
--satsbyte
的准确性,当余额较低或--satsbyte
较高时(本质上是发生本次交易后的余额不足以回到钱包,会全数作为Gas),可能会为了避免BTC粉尘问题导致Gas
偏高 - 如是帮人代打可以直接添加环境变量
PRIMARY_ADDRESS=bc1p...
- 如
ELECTRUM
代理节点过慢可以添加环境变量ELECTRUMX_PROXY_BASE_URL=https://...
- 如
ATOMICALS
代理节点过慢可以添加环境变量ATOMICALS_PROXY_BASE_URL=https://...
本项目支持杂交节点,从而避免
ELECTRUM
相关数据过慢的情况(如UTXO
计算滞后)即
ELECTRUM
相关请求发送至ELECTRUM
代理节点,ATOMICALS
相关请求发送至ATOMICALS
代理节点如未配置
ATOMICALS
代理节点则会将ELECTRUM
代理节点当作ATOMICALS
代理节点使用(此时逻辑与官方一致)
如需自动重复执行,可以编写命令行脚本,如:
Mac / Linux:
while true; do yarn cli mint-dft quark --satsbyte 110; done;
Windows PowerShell:
while ($true) {
yarn cli mint-dft quark --satsbyte 110
}
Windows CMD:
for /l %a in (0,0,1) do yarn cli mint-dft quark --satsbyte 110
atomicals.xyz Documentation: https://docs.atomicals.xyz
Use yarn
package manager instead of npm
. Instructions below (They are: npm install -g yarn
)
In the latest version of the CLI processing library the option switches (the settings starting with --
) are not processed correctly and it would lead to
too small of a fee being set and result in your transactions not being mined.
Workaround: Use yarn
instead of npm
# Download the github repo:
git clone https://github.com/atomicals/atomicals-js.git
cd atomicals-js
# Build:
# If you don't have yarn & node installed
# npm install -g node
# npm install -g yarn
yarn install
yarn run build
#See all commands at:
yarn run cli --help
First install packages and build, then follow the steps here to create your first Atomical and query the status. Use yarn cli
to get a list of all commands available.
The environment file comes with defaults (.env.example
), but it is highly recommend to install and operate your own ElectrumX server. Web browser communication is possible through the wss
(secure websockets) interface of ElectrumX.
ELECTRUMX_WSS=wss://electrumx.atomicals.xyz:50012
// Optional (defaults to wallet.json)
WALLET_PATH=path-to-wallet.json
// The number of concurrent processes to be used. This should not exceed the number of CPU cores available. If not set, the default behavior is to use all available CPU cores minus one.
CONCURRENCY=4
ELECTRUMX_WSS: URL of the ElectrumX with Atomicals support. Note that only wss
endpoints are accessible from web browsers.
The purpose of the wallet is to create p2tr (pay-to-taproot) spend scripts and to receive change from the transactions made for the various operations. Do not put more funds than you can afford to lose, as this is still beta!
To initialize a new wallet.json
file that will store your address for receiving change use the wallet-init
command. Alternatively, you may populate the wallet.json
manually, ensuring that the address at m/44'/0'/0'/0/0
is equal to the address and the derivePath is set correctly.
Configure the path in the environment .env
file to point to your wallet file. defaults to ./wallet.json
Default:
WALLET_PATH=.
WALLET_FILE=wallet.json
Update to wallets/
directory:
WALLET_PATH=./wallets
WALLET_FILE=wallet.json
Create the wallet:
yarn cli wallet-init
>>>
Wallet created at wallet.json
phrase: maple maple maple maple maple maple maple maple maple maple maple maple
Legacy address (for change): 1FXL2CJ9nAC...u3e9Evdsa2pKrPhkag
Derive Path: m/44'/0'/0'/0/0
WIF: L5Sa65gNR6QsBjqK.....r6o4YzcqNRnJ1p4a6GPxqQQ
------------------------------------------------------
yarn cli --help
Get all of the commands available:
yarn cli --help
Read the documentation at https://docs.atomicals.xyz
See updated ElectrumX (https://github.com/atomicals/atomicals-electrumx)
https://x.com/atomicalsxyz (X - Formerly Twitter)
We greatly appreciate any donation to help support Atomicals Protocol development. We worked out of passion and kindness for the world, we believe this technology must exist and be free for all to use. Bitcoin is our one hope for freedom and digital sovereignty and we intend to do our best to make it a reality.
BTC: bc1pa5hvv3w3wjwfktd63zcng6yeccxg9aa90e34n9jrjw3thgc52reqxw6has