This repository holds the dockerized version of Bitcoin core full node running in the REGTEST mode.
Follow the instructions below to run a local instance of the same.
git clone https://github.com/cry0genic/bitcoin-core-full-node.git
Clone the repositorysudo chmod +x rpc.sh
Make rpc.sh executable../rpc.sh <username> <password>
Run rpc.sh with username and password as the two arguments to the script.docker-compose up --build -d
Build docker container and volumes.
$ docker ps
$ docker exec -it <container_id> bitcoin-cli -regtest -rpcuser=<username> -rpcpassword=<password> createwallet <name>
$ curl --request POST \
--url http://<RPC_USERNAME>:<RPC_PASSWORD>@localhost:18443/ \
--header 'content-type: application/json' \
--data '{"jsonrpc": "2.0","id": "sample-id","method": "getblockchaininfo","params": []}'