renuzit / bitcoinz-legacy

BitcoinZ

Home Page:https://bitcointalk.org/index.php?topic=3086664.0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BitcoinZ

Keep running wallet to strengthen the BitcoinZ network. Backup your wallet in many locations & keep your coins wallet offline.

Ports:

  • RPC port: 1979
  • P2P port: 1989

Install

Linux

Get dependencies

sudo apt-get install \
      build-essential pkg-config libc6-dev m4 g++-multilib \
      autoconf libtool ncurses-dev unzip git python \
      zlib1g-dev wget bsdmainutils automake

Install

# Clone Bitcoinz Repository
git clone https://github.com/btcz/bitcoinz
# Build
cd bitcoinz/
./zcutil/build.sh -j$(nproc)
# fetch key
./zcutil/fetch-params.sh
# Run
./src/bitcoinzd
# Test getting information about the network
cd src/
./bitcoinz-cli getmininginfo
# Test creating new transparent address
./bitcoinz-cli getnewaddress
# Test creating new private address
./bitcoinz-cli z_getnewaddress
# Test checking transparent balance
./bitcoinz-cli getbalance
# Test checking total balance 
./bitcoinz-cli z_gettotalbalance
# Check all available wallet commands
./bitcoinz-cli help
# Get more info about a single wallet command
./bitcoinz-cli help "The-command-you-want-to-learn-more-about"
./bitcoinz-cli help "getbalance"

Docker

Build

$ docker build -t btcz/bitcoinz .

Create a data directory on your local drive and create a bitcoinz.conf config file

$ mkdir -p /ops/volumes/bitcoinz/data
$ touch /ops/volumes/bitcoinz/data/bitcoinz.conf
$ chown -R 999:999 /ops/volumes/bitcoinz/data

Create bitcoinz.conf config file and run the application

$ docker run -d --name bitcoinz-node \
  -v bitcoinz.conf:/bitcoinz/data/bitcoinz.conf \
  -p 1989:1989 -p 127.0.0.1:1979:1979 \
  btcz/bitcoinz

Verify bitcoinz-node is running

$ docker ps
CONTAINER ID        IMAGE                  COMMAND                     CREATED             STATUS              PORTS                                              NAMES
31868a91456d        btcz/bitcoinz          "bitcoinzd --datadir=..."   2 hours ago         Up 2 hours          127.0.0.1:1979->1979/tcp, 0.0.0.0:1989->1989/tcp   bitcoinz-node

Follow the logs

docker logs -f bitcoinz-node

The cli command is a wrapper to bitcoinz-cli that works with an already running Docker container

docker exec -it bitcoinz-node cli help

Using a Dockerfile

If you'd like to have a production btc/bitcoinz image with a pre-baked configuration file, use of a Dockerfile is recommended:

FROM btcz/bitcoinz
COPY bitcoinz.conf /bitcoinz/data/bitcoinz.conf

Then, build with docker build -t my-bitcoinz . and run.

Windows

Windows build is maintained in bitcoinz-win project.

Security Warnings

BitcoinZ is experimental and a work-in-progress. Use at your own risk.

About

BitcoinZ

https://bitcointalk.org/index.php?topic=3086664.0

License:Other


Languages

Language:C++ 74.6%Language:C 9.3%Language:Python 9.2%Language:M4 2.4%Language:Shell 1.5%Language:Makefile 1.3%Language:HTML 0.7%Language:Java 0.4%Language:Assembly 0.4%Language:Objective-C 0.1%Language:Dockerfile 0.0%Language:CSS 0.0%