alewerner / Bitcoin-Programming-with-BitcoinJS

Bitcoin Programming with BitcoinJS and Bitcoin Core CLI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Bitcoin Programming with BitcoinJS and Bitcoin Core CLI


Languages

Language:JavaScript 54.7%Language:Shell 45.3%