A full stack for bitcoin and blockchain-based applications
Go to the root directory of your computer
cd ~
Create a .profile file if missing
OR
Create a .bashrc if configuring for interactive Bash usage
touch .profile
OR
touch .bashrc
Edit the .profile file to insert:
Make sure to replace username
alias bitcoinmainnet='/Applications/Bitcoin-Qt.app/Contents/MacOS/Bitcoin-Qt -datadir=/Users/username/blockchains/bitcoin-core/networks/mainnet/'
alias bitcoinregtest='/Applications/Bitcoin-Qt.app/Contents/MacOS/Bitcoin-Qt -datadir=/Users/username/blockchains/bitcoin-core/networks/regtest/'
alias bitcoincashmainnet='/Applications/BitcoinABC-Qt.app/Contents/MacOS/BitcoinABC-Qt -datadir=/Users/username/blockchains/bitcoincash/networks/mainnet/ -flexiblehandshake -initiatecashconnections'
alias bitcoincashregtest='/Applications/BitcoinABC-Qt.app/Contents/MacOS/BitcoinABC-Qt -datadir=/Users/username/blockchains/bitcoincash/networks/regtest/ -flexiblehandshake -initiatecashconnections'
Ensure Mongod is running
mongod
Start the Bitcore node in the /bitcore/ project root directory
npm run node
To run RegTest Bitcoin Core RegTest Client
. ~/.profile
bitcoinregtest
If successful Bitcore logo should be blue and syncing blocks on mongod in the background
Go to Help -> Debug Window -> console tab
Input generate command in the line to create 5000 Blocks
generate 5000
To find RegTest account address
getaccountaddress ""
Test transactions by sending to account address in the send tab
Check transaction results in the Transactions tab