bitcoinjs-lib JavaScript library for bitcoin

Regulatory status
Not a financial service
Custody
Not applicable
Open source
Yes
Status
Active

Swiss angle

bitcoinjs-lib lives in the bitcoinjs GitHub organisation. Its repository, read on 5 October 2026, names no company behind it and no Swiss base. It is a code library; it holds no coins and offers no account, so it is not a financial service.

The project's pages name no Swiss maintainer either, so this listing claims none. The technical deep dive chapter explains the transactions and scripts the library builds.

Who it is for

JavaScript developers who need to build and sign bitcoin transactions in Node.js or in a browser. The README describes "A javascript Bitcoin library for node.js and browsers. Written in TypeScript, but committing the JS files to verify." The README also links a web page that covers most of its PSBT, transaction and payment-type APIs.

Developers who want a small bundle. The README says key management (ECPair, and HDNode, now called bip32) moved into separate libraries, which lowers the bundle size if you do not need those functions.

People who read the safety notes before they ship. The README's answer to "Can I trust this code?" is "Don't trust. Verify." It warns that a weak random number generator or a bug in a dependency can cause catastrophic fund loss without any warning, and it asks you to test in your target environment.

Teams that pin versions. The README names MIT as the licence. GitHub shows no release object for the project, and the newest tag on 5 October 2026 is v7.0.1.

Who it is not for

Anyone about to put the master branch into production. The README says: "If you are thinking of using the master branch of this library in production, stop." Master is the development branch, and only tagged releases count as stable.

Anyone who installs from npm and stops there. The README warns that the project provides no tooling to check that the npm release matches GitHub, so you should verify what npm gives you against your own copy.

People looking for a wallet. bitcoinjs-lib has no user interface. Start with the wallet listings, or see bitcoinj if you build in Java instead.

Read the chapter

Verified facts

SourceChecked on
bitcoinjs-lib on GitHub

This directory carries no paid placements and no referral codes. No provider paid to be listed or to be described in a certain way. Each fact was checked against the primary source on the date shown next to it, and facts change after that date. This page is general information, not financial, legal or tax advice.

Want chapter updates?