Skip to content
This repository has been archived by the owner on Apr 4, 2019. It is now read-only.

Latest commit

 

History

History
42 lines (28 loc) · 1.05 KB

README.md

File metadata and controls

42 lines (28 loc) · 1.05 KB

Bitcoin Regtest with Electrum Server and Faucet API

Requirement

  • docker & docker-compose

Usage

Following commands are enabled under the root dir of the project.

    1. build: docker-compose build
    1. clean: ./clean-electrumx.sh
    1. start daemon: docker-compose up -d
    1. test: ./test.sh

Other commands

  • 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]

Electrum API example

after $ npm install, try $ node rpctest.js.

Faucet API example

curl -d "amount=10" http://localhost:3001/faucet/mnJQyeDFmGjNoxyxKQC6MMFdpx77rYV3Bo

Other examples

$ 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