- New blocks are mined automatically every 20 seconds
- Insight API: tls@55002, tcp@55001
- Faucet API: http://localhost:3001/faucet/
- docker & docker-compose
Following commands are enabled under the root dir of the project.
-
- build:
docker-compose build
- build:
-
- clean:
./clean-electrumx.sh
- clean:
-
- start daemon:
docker-compose up -d
- start daemon:
-
- test:
./test.sh
- test:
- stop & remove daemon:
docker-compose down
- list process:
docker-compose ps
- login to the server:
docker-compose exec bitcoind bash
- run command:
docker-compose exec bitcoind [command]
after $ npm install
, try $ node rpctest.js
.
curl -d "amount=10" http://localhost:3001/faucet/mnJQyeDFmGjNoxyxKQC6MMFdpx77rYV3Bo
$ docker exec --user bitcoin electrumx-regtest_bitcoind_1 bitcoin-cli -rpcuser=electrum -rpcpassword=electrum -regtest getmininginfo
$ docker exec -it --user bitcoin electrumx-regtest_bitcoind_1 bash