Skip to content

cry0genic/bitcoin-core-full-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Run a Dockerized Bitcoin Core Full Node

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.

Steps:

  1. git clone https://github.com/cry0genic/bitcoin-core-full-node.git
    Clone the repository
  2. sudo chmod +x rpc.sh
    Make rpc.sh executable.
  3. ./rpc.sh <username> <password>
    Run rpc.sh with username and password as the two arguments to the script.
  4. docker-compose up --build -d
    Build docker container and volumes.

JSON-RPC Interface

$ 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": []}'

About

docker config to run bitcoin core full node

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published