bitcoin-js
1
总安装量
1
周安装量
#54828
全站排名
安装命令
npx skills add https://github.com/hairyf/blockchain-master --skill bitcoin-js
Agent 安装分布
amp
1
trae
1
opencode
1
cursor
1
codex
1
Skill 文档
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 |