As atomicals-electrumx support http
from version v1.3.8.0, this project is deprecated.
Use atomicals-electrumx-docker
Aim to provide a simple and easy way to run atomicals-electrumx-proxy server with atomicals-electrumx service.
txindex=1
and enable rpc. A example of bitcoin.conf
:server=1
txindex=1
# genearate with [rpcauth.py](https://github.com/bitcoin/bitcoin/blob/master/share/rpcauth/rpcauth.py)
# equals to `rpcuser=nextdao` and `rpcpassword=nextdao`
rpcauth=nextdao:cca838b4b19bdc6093f4e0312550361c$213834a29e8488804946c196781059a7ee0ac2b48dbf896b4c6852060d9d83dd
rpcallowip=127.0.0.1
rpcallowip=172.0.0.0/8
rpcallowip=192.168.0.0/16
rpcbind=0.0.0.0
The folder's Disk should have at least 100G spaces.
Edit ${IP:?}
in docker-compose.yml
to your computer's ip address.
docker-compose pull && docker-compose up -d
./electrumx-data
directory.docker-compose logs -f
to check the logs.docker-compose down
to stop the server.Edit .env with ELECTRUMX_PROXY_BASE_URL=http://localhost:8080/proxy
, then use all commands as usual.
If you run atomicals cli in anthoer host, change localhost
to the ip
of the proxy
server.
docker-compose ps
If you see electrumx
is healthy
, then the server is ready.
electrumx
can't connect to bitcoind
?Double check your bitcoin.conf
and docker-compose.yml
.
ip
included in rpcallowip
of bitcoin.conf
?bitcoind
listen on 8332
port?bitcoind
rpc username and password is correct?One guess is your disk is slow. You can try to use a SSD disk.
I can't find any other reason. If you know, please tell me.
The v1.3.6 changed leveldb strcture, so you need to resync from the beginning. So I deleted the magnet link.
Or you can download the electrumx-data
:
When your download is finished:
1. Stop the server:
docker-compose down
if it is running.2. Delete
electrumx-data
directory in the folder which contains docker-compose.yml
.3. Unzip (use 7zip) zip files in
ElectrumX-Data-20231114
, you will get a electrumx-data
directory.4. Move
electrumx-data
to the folder which contains docker-compose.yml
.5. Start the server:
docker-compose up -d
.6. Abount 30 minutes later, the server will be ready. (Tested on a 4 cores 8G memory computer)