界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

bitcoin-libraries-bitcoinlib-py

bitcoin-libraries-bitcoinlib-py

【效率与协作】bitcoinlib (Python): high-level wallet library by 1200WD. HD wallets, multi-currency, address generation, tx construction. USE WHEN: building Python wallets, multi-currency BTC + altcoin apps.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: bitcoin-libraries-bitcoinlib-py description: | bitcoinlib (Python): high-level wallet library by 1200WD. HD wallets, multi-currency, address generation, tx construction. USE WHEN: building Python wallets, multi-currency BTC + altcoin apps. allowed-tools: Read, Grep, Glob

bitcoinlib (Python)

High-level wallet library by 1200WD. Aims to be a complete solution for Python Bitcoin (and altcoin) wallets.

Repo: github.com/1200wd/bitcoinlib.

Install

pip install bitcoinlib

Quick example

from bitcoinlib.wallets import Wallet

wallet = Wallet.create("MyWallet")
addr = wallet.get_key().address
print(addr)

# Sync with chain
wallet.scan()
print(wallet.balance())

# Send
tx = wallet.send_to("bc1q...", 10000)
print(tx.txid)

Features

  • Multi-currency: Bitcoin, Litecoin, Dogecoin, Dash, Bitcoin Cash, others.
  • HD wallet (BIP32/39/44).
  • Multiple chain backends: bitcoind, blockcypher, etc.
  • Encrypted database for keys.
  • Multi-sig.

Compared

Aspectbitcoinlibpython-bitcoinlibbdk-python
LevelHigh (wallet)Low (primitives)High (wallet)
Multi-currencyyesBitcoin onlyBitcoin only
AuditCommunityCommunityMultiple audits
Maturity7+ years10+ yearsnewer

Use cases

  • Multi-currency wallets in Python.
  • Quick wallet prototypes.
  • Educational Python code.

Common pitfalls

  • Default DB is local SQLite; not designed for high-concurrency.
  • Multi-currency means bigger surface area; some chains less polished than Bitcoin.

See also

我的收藏