Skip to content

maaaashin324/Get-Started-Bitcoin-js

Repository files navigation

Get Started Bitcoin

This was created during my time as a student at Code Chrysalis.

0. Pre-requisite Knowledge

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

Windows User

Just install them.

Mac User

  • 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

3. Git clone this repository in your computer

git clone https://github.com/maaaashin324/Get-Started-Bitcoin-js.git

4. Yarn install

yarn install

5. Make your Bitcoin private key and public key : Bitcoin Address

  • 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!'

6. Check a transaction I sent you

7. Return back your Bitcoin to me!

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.

About

This was created during my time as a student at Code Chrysalis.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published