{"library":"bitcoinjs-lib","type":"library","category":null,"description":"bitcoinjs-lib is a foundational JavaScript library for interacting with the Bitcoin protocol in both Node.js and browser environments. Written in TypeScript, it provides essential functionalities for creating and manipulating Bitcoin transactions, managing addresses, and working with various script types. The current stable version is 7.0.1. The project follows a release cadence where only tagged releases are considered stable, with the `master` branch serving as the unstable development branch. Key differentiators include its strong emphasis on security through auditability and extensive testing (over 95% test coverage), its modular design (e.g., separating key management into `ecpair` and `bip32` packages to reduce bundle size), and its commitment to open standards and a helpful community. It does not handle key derivation itself, offloading this to specialized, smaller libraries.","language":"javascript","status":"active","version":"7.0.1","tags":["javascript","bitcoinjs","bitcoin","browserify","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install bitcoinjs-lib","imports":["import * as bitcoin from 'bitcoinjs-lib';","import { Transaction, networks, Psbt } from 'bitcoinjs-lib';","import * as ecc from '@noble/secp256k1';\nimport * as ECPairFactory from 'ecpair';\nconst ECPair = ECPairFactory.ECPairFactory(ecc);\n// Similarly for bip32: import * as bip32Factory from 'bip32'; const bip32 = bip32Factory.BIP32Factory(ecc);"]},{"cmd":"yarn add bitcoinjs-lib","imports":[]},{"cmd":"pnpm add bitcoinjs-lib","imports":[]}],"homepage":null,"github":"https://github.com/bitcoinjs/bitcoinjs-lib","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/bitcoinjs-lib","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/bitcoinjs-lib/compatibility"}}