BitcoinGOD Mainchain Installation

It is the Bitcoin God client and it builds the backbone of the network. It downloads and, by default, stores the entire history of Bitcoin transactions (which is currently more than 160 GBs); depending on the speed of your computer and network connection, the synchronization process can take anywhere from a few hours to a day or more.

Dependencies

Unix

sudo apt-get update 
sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils
sudo apt-get install libboost-all-dev
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install libdb4.8-dev libdb4.8++-dev
sudo apt-get install libminiupnpc-dev

Mac

Install the OS X command line tools: xcode-select –install When the popup appears, click Install .

Then install Homebrew.

brew install automake berkeley-db4 libtool boost --c++11 miniupnpc openssl pkg-config protobuf libevent

Windows

Unpack the files into a directory, the disk should have a minimum 160GB storage.

Building

Unix & Mac

1.Clone the bitcoingod source code and cd into bitcoingod

git clone https://github.com/BitcoinGod/BitcoinGod.git 
cd BitcoinGod

2.build Bitcoind God: Configure and build the headless Bitcoind God binaries –without-gui

./autogen.sh 
./configure --without-gui 
make 
make install

Windows

Don’t need building.

Running

Before running, it’s recommended you create an RPC configuration file,create an RPC configuration file on OSX

echo -e "rpcuser=default@\nrpcpassword=default@" > "/Users/${USER}/Library/Application Sup port/BitcoinGod/bitcoin.conf"

chmod 600 "/Users/${USER}/Library/Application Support/BitcoinGod/bitcoin.conf"

create an RPC configuration file on linux or unix

echo -e "rpcuser=default@\nrpcpassword=default@" > "/${USER}/.BitcoinGod/bitcoin.conf"

chmod 600 "/${USER}/.BitcoinGod/bitcoin.conf"

create an RPC configuration file on Windows

echo rpcuser=default@ >%USERPROFILE%\AppData\Roaming\BitcoinGod\bitcoin.conf	
echo rpcpassword=default@ >>%USERPROFILE%\AppData\Roaming\BitcoinGod\bitcoin.conf

Quick start

windows

start the daemon like this:

bitcoingodd.exe

communicate with your daemon like this

bitcoingod-cli.exe help

linux

start the daemon like this:

bitcoingodd -datadir={/BitcoinGod/datadir} -rpcuser={username} -rpcpassword={passwd} -daemon

communicate with your daemon like this:

bitcoingod-cli -rpcuser={username} -rpcpassword={passwd} help

If you’re connected to the Internet, bitcoingodd will begin downloading and verifying the blockchain. This can take from several hours to several days depending on the speed of your computer and Internet connection

Starts the bitcoin daemon

bitcoingodd -daemon

The first time you run BitcoinGod, it will start downloading the blockchain. This process could take several hours.

You can monitor the download process by looking at the debug.log file:

tail -f debug.log

Other commands:

1.start BitcoinGOD

bitcoingodd -daemon -debug=0

2.stop BitcoinGOD

bitcoingod-cli stop

3.show balance

bitcoingod-cli getbalance <account[optional]>

4.show fullnode infomation

bitcoingod-cli getinfo

5.send coin to address

bitcoingod-cli sendtoaddress <address> <amount>

6.show history transaction

bitcoingod-cli listtransactions <account> <count=10> <from=0>

7.show UTXOS

bitcoingod-cli listunspent <minconf=1> <maxconf=999999>

8.mining

bitcoingod-cli generatepos

9.get blockhash by blockheight

bitcoingod-cli getblockhash <height>

10.get block info

bitcoingod-cli getblock <blockhash>

11.get transaction info

bitcoingod-cli gettransaction <txid>

 

中文版

Posted on