This was created during my time as a student at Code Chrysalis.
This meetup and demonstration assumes that you have working knowledge of git and JavaScript.
1. Install VSCode
2. Install Node.js
3. Install Git
4. Install yarn
Just install them.
-
If you are Mac user, you need to install XCode and XCode command tools.
-
After that, install Homebrew and Nodebrew. Git has already been installed in your mac.
-
If you have already node and npm without using Nodebrew, you need not use nodebrew!
-
How to install homebrew and nodebrew is the following.
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew install nodebrew
$ /usr/local/opt/nodebrew/bin/nodebrew setup_dirs
$ cd
$ vi .bash_profile
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
export NODEBREW_ROOT=/usr/local/var/nodebrew
PATH="$NODEBREW_ROOT/current/bin:$PATH"
PATH="`yarn global bin`:$PATH" // You also need to install `yarn` after it
export PATH
$ nodebrew install-binary latest
$ nodebrew use latest
git clone https://github.com/maaaashin324/Get-Started-Bitcoin-js.git
yarn install
- Let's make your Bitcoin Address with
1-makeBtcAddress.js
. - Please let me know your Bitcoin Address on Google Forms
- make your dotenv file and input your Bitcoin WIF like the following.
$ pwd
~/Projects/Get-Started-Bitcoin-js
$ touch .env
$ code !$
myWIF = 'write down your Bitcoin WIF. NOT YOUR BITCOIN ADDRESS!'
- You can use some Block Explorer. For example, Block Cypher, Coin base, block explorer, BlockChainHub
- Today, I prepared the code which check your transaction using API of BlockChainHub.
Please return back the Bitcoin to me! The Bitcoin is only for testnet, so if you keep the Bitcoin, you can use it only for test! Let's make a transaction for sending your Bitcoin to me with 3-returnBackBtc.js
.