Atomicals-go: 是atomicals索引器atomicals-electrumx的golang版本,并以文本方式提供了atomicals协议的详细内容(在本仓库的doc目录下)
在未来一段时间内github:yimingWOW仍然会维护该项目(及时同步atomicals-electrumx的更新)
| language | files | code | comment | blank | total |
|---|---|---|---|---|---|
| go | 70 | 4,268 | 198 | 520 | 4,986 |

http接口中应该加入必要的缓存
hey, 关心atomicals的各位小伙伴们,之前和wizz的成员沟通后,todo list中的payment也很重要,我将把这个功能补齐,这还需要一段时间。
// cd to a path u want to save btc node file
mkdir btc
wget https://bitcoincore.org/bin/bitcoin-core-26.0/bitcoin-26.0-arm64-apple-darwin.tar.gz
tar -xzvf bitcoin-26.0-x86_64-linux-gnu.tar.gz
mv bitcoin-26.0 bitcoin
vim ./bitcoin/bitcoin.conf
Edit bitcoin.conf, add these params for main net. we run btc node with prune mode and set assumevalid=0000000000000000000211eb82135b8f5d8be921debf8eff1d6b38b73bc03834.
Atomicals protocal start from blockHeight=808080, we don't need all blockInfo.
# Options for mainnet
[main]
dbcache=1024
server=1
rest=1
daemon=1
rpcbind=0.0.0.0:8332
rpcallowip=0.0.0.0/0
rpcuser=btc
rpcpassword=btc2012
prune=240000
assumevalid=0000000000000000000211eb82135b8f5d8be921debf8eff1d6b38b73bc03834
$ docker run --name postgres -p 5432:5432 -e POSTGRES_DB=atomicals -e POSTGRES_USER=admin -e POSTGRES_PASSWORD=admin123 -d postgres:14
{
"btc_rpc_url" : "0.0.0.0:8332",
"btc_rpc_user": "btc" ,
"btc_rpc_password": "btc2012",
"sql_dns": "host=127.0.0.1 user=admin password=admin123 dbname=atomicals port=5432 sslmode=disable"
}
// cd to atomicals-go path
go mod tidy
// init sql table
cd repo/postsql/init/
go run ./
// start indexer
cd
go run ./
// or run it with nohup: nohup go run ./ > log.txt 2>&1 &
// start atomicals-api service if you need
cd atomicals-api
go run ./
$ claude mcp add atomicals-go \
-- python -m otcore.mcp_server <graph>