NYC

bitcoin-js

SKILL.md

Skill based on bitcoinjs-lib v7.x, generated 2026-02-09. Docs: https://bitcoinjs.github.io/bitcoinjs-lib/

bitcoinjs-lib is a client-side Bitcoin library for Node and browsers: build/sign transactions via PSBT, create addresses and payment outputs (P2PKH, P2SH, P2WPKH, P2WSH, P2TR), decode/encode addresses. Keys come from ecpair and bip32; ECC must be initialized with initEccLib for signing and Taproot.

Core References

Topic Description Reference
Payments & Addresses p2pkh, p2sh, p2wpkh, p2wsh, p2tr; toOutputScript / fromOutputScript core-payments-addresses
PSBT Create, add I/O, sign, validate, finalize, extract transaction core-psbt
Transaction & Script Transaction parse/build, script compile/decompile, opcodes, networks core-transaction-script

Features

Networks & ECC

Topic Description Reference
Networks, ECC, Keys bitcoin/testnet/regtest, initEccLib, ecpair, bip32, bip39 features-networks-ecc

Best Practices

Topic Description Reference
Security RNG, no address reuse, no xpub sharing, verify before broadcast best-practices-security

External Links

Weekly Installs
2
First Seen
10 days ago
Installed on
trae2
gemini-cli2
claude-code2
github-copilot2
codex2
kimi-cli2