Bitcoin Programming with BitcoinJS and Bitcoin Core CLI
Switch branches/tags
Nothing to show
Clone or download
Latest commit 70e8310 Dec 4, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea First commit Nov 28, 2018
code First commit Nov 28, 2018
.gitignore First commit Nov 28, 2018
01_0_Introduction_Bitcoin_Programming.md Add "Next" link Dec 1, 2018
02_0_Generating_and_Importing_Wallets.md Add "Next" link Dec 1, 2018
03_0_P2PKH.md Add "Next" link Dec 1, 2018
03_1_P2PKH_Simple_Tx_1_1.md Add "Next" link Dec 1, 2018
03_2_P2PKH_Typical_Tx_1_2.md Add "Next" link Dec 1, 2018
03_3_P2PKH_UTXO_Consolidation_5_1.md Add "Next" link Dec 1, 2018
03_4_P2PKH_Batching_Tx_1_5.md Add "Next" link Dec 1, 2018
03_5_P2PKH_Coinjoin_Tx_4_4.md Add "Next" link Dec 1, 2018
04_0_P2WPKH.md Correct term confusion, redeem script and witness script Dec 4, 2018
04_1_P2WPKH_Spend_1_1.md Correct term confusion, redeem script and witness script Dec 4, 2018
04_2_P2WPKH_Typical_Tx_1_2.md Correct term confusion, redeem script and witness script Dec 4, 2018
05_0_P2SH_P2WPKH_Spend_1_1.md Correct term confusion, redeem script and witness script Dec 4, 2018
06_0_Embedding_Data_OP_RETURN.md Add "Next" link Dec 1, 2018
07_0_Bitcoin_Script_Puzzles.md Add "Next" link Dec 1, 2018
07_1_P2SH_Algebra_Puzzle.md Add "Next" link Dec 1, 2018
07_2_P2WSH_Algebra_Puzzle.md Correct term confusion, redeem script and witness script Dec 4, 2018
07_3_P2SH_P2WSH_Algebra_Puzzle.md Correct term confusion, redeem script and witness script Dec 4, 2018
07_4_P2SH_Computational_Puzzle_SHA-1_Collision.md Add "Next" link Dec 1, 2018
08_0_Multisig_Transactions.md Add "Next" link Dec 1, 2018
08_1_Multisig_P2SH_2_4.md Add "Next" link Dec 1, 2018
08_2_Multisig_P2WSH_P2MS_2_4.md Correct term confusion, redeem script and witness script Dec 4, 2018
08_3_Multisig_P2SH_P2WSH_P2MS_2_4.md Correct term confusion, redeem script and witness script Dec 4, 2018
09_0_Timelock_Transactions.md Add "Next" link Dec 1, 2018
09_1_P2SH_CLTV.md Add "Next" link Dec 1, 2018
09_2_P2WSH_CLTV.md Correct term confusion, redeem script and witness script Dec 4, 2018
09_3_P2SH_CSV.md Add "Next" link Dec 1, 2018
09_4_P2WSH_CSV.md Correct term confusion, redeem script and witness script Dec 4, 2018
LICENSE-CC-BY-4.0.md First commit Nov 28, 2018
README.md Add disclaimer Dec 4, 2018
bitcoin_donation.png Add donation address Dec 2, 2018

README.md

Programming Bitcoin with BitcoinJS and Bitcoin Core CLI

Welcome to the extensive guide to Bitcoin Javascript! In this guide we will explain how to create various types of Bitcoin transactions, using the BitcoinJS library.

We will use the Bitcoin Core command-line interface in Regtest mode for various common tasks, as well as some complementary libraries like bx aka Libbitcoin Explorer.

Throughout this guide, we want to provide you with sufficient explanation to each command to understand it without drowning in information. You can refer to additional resources to better understand the Bitcoin protocol. For example, check out our Bitcoin Studio presentations.

At the moment, Bitcoin Javascript tutorials are still very scarce, but we believe it doesn't have to be this way. The following guide intends to address this problem.

Requirements

Having prior theoretical knowledge of the Bitcoin protocol will surely help, but we provide comprehensive explanation throughout this guide so it fits for beginners.

Technical requirements

  • Node v10.x or superior
  • BitcoinJS v4.x or superior
  • Bitcoin Core v17.x or superior
  • Libbitcoin Explorer v3.4.x or superior

Copyright

Unless otherwise noted, the contents of this repository are Copyright ©2018 by Bitcoin Studio and are licensed CC-BY.

Disclaimer

  • This guide is not an official documentation
  • You must check the BitcoinJS repository for up-to-date code
  • Non-standard scripts are exposed for educational purposes
  • The author of this guide is not responsible for any loss of funds

Table of Contents

PART ONE: PREPARING THE WORK ENVIRONMENT

PART TWO: PAY TO PUBLIC KEY HASH

PART THREE: PAY TO SCRIPT HASH


Please consider making a donation so that I can continue producing free educational content
Donate with Bitcoin | 3CmJsUcx6txveq32kVqG92pczc1suLh6BD