Skip to content

Educational TypeScript code samples for learning Bitcoin transactions with @bitcoinerlab libraries.

Notifications You must be signed in to change notification settings

bitcoinerlab/playground

Repository files navigation

BitcoinerLab Playground

This repository contains a set of Playgrounds that serve as the foundation for the guides on the BitcoinerLab Site.

You can either run the code on a sandboxed playground or locally by installing it.

Note: The code shown in these guides is in TypeScript, but a transpiled JavaScript version is automatically generated when building the sources.

Running the Code on a Playground

To run the code in a playground, visit the respective guide and click the SHOW PLAYGROUND button.

All the guides provide thorough explanations of how the code works.

Running Locally

If you prefer to run the code locally, clone and run the BitcoinerLab Playground repository in your local machine.

For example:

git clone https://github.com/bitcoinerlab/playground.git
cd playground
npm install
npm run build
npm run descriptors/legacy2segwit

This will execute the code in ./descriptors/legacy2segwit/index.ts and output the results.

The following guides are available:

  • descriptors/legacy2segwit: Learn how to use the @bitcoinerlab set of libraries to program standard transactions.
  • descriptors/miniscript: Learn how to use the @bitcoinerlab set of libraries to create a Timelocked Vault with an emergency escape path.
  • descriptors/ledger: Learn how to use @bitcoinerlab to create transactions and sign them with Ledger devices

About

Educational TypeScript code samples for learning Bitcoin transactions with @bitcoinerlab libraries.

Resources

Stars

Watchers

Forks

Packages

No packages published