Skip to content

Bitcoin Regtest with Electrum Server and Faucet API.

Notifications You must be signed in to change notification settings

MyNameIsOka/electrumx-regtest

 
 

Repository files navigation

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

About

Bitcoin Regtest with Electrum Server and Faucet API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 47.1%
  • JavaScript 45.8%
  • Dockerfile 7.1%