chx8223 / atomicals-electrumx-proxy-docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Atomicals ElectrumX Proxy Docker

Aim to provide a simple and easy way to run atomicals-electrumx-proxy server with atomicals-electrumx service.

Requirements

  1. Bitcoin Full Node with txindex=1 and enable rpc.
  2. Docker with docker-compose.

Usage

1. Download docker-compose.yml to a folder.

The folder's Disk should have at least 100G left.

Create an .env file with content below (change to your own settings):

DAEMON_URL=rpcuser:rpcpassword@192.168.50.111:8332
  1. Run the server:
docker-compose pull && docker-compose up -d
  • the electrumx indexes stored in ./electrumx-data directory.
  • use docker-compose ps to check if electrumx is ready.
  • use docker-compose logs -f to check the logs.
  • use docker-compose down to stop the server.
  1. Used in atomicals-js

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.

About

License:MIT License


Languages

Language:Dockerfile 100.0%