Skip to content

Latest commit

 

History

History
78 lines (55 loc) · 4.01 KB

File metadata and controls

78 lines (55 loc) · 4.01 KB

Programming Bitcoin with BitcoinJS and Bitcoin Core CLI

Welcome to the best Javascript Bitcoin guide! We will explain how to create all the 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 give enough explanation to each command to understand it, but without drowning the reader 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 present guide intend to address this problem.

Requirements

Already having a theoretical knowledge of the Bitcoin protocol will surely help, but we provide sufficiently detailed explanation throughout this guide so that it remains accessible to 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.

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