Bitcoin Wallet Balances & Transactions API
CoinStats API provides robust Bitcoin wallet integration with advanced features including extended public key (xpub) support, enabling you to track entire wallet hierarchies and monitor all derived addresses from a single request.Key Features
- π Extended Public Key (xpub) Support: Track entire HD wallets with a single xpub
- π Single Address Tracking: Monitor individual Bitcoin addresses
- π° UTXO Management: Detailed unspent transaction output tracking
- π Transaction History: Complete transaction history with block confirmations
- β‘ Lightning Network: Support for Lightning Network transactions
- π Multi-Signature: Track multi-sig wallet addresses
- π Portfolio Value: Real-time BTC value and historical performance
Extended Public Key (xpub) Tracking
Track an entire HD wallet using the extended public key:40 credits per request - covers all derived addresses automatically
xpub vs Single Address
- Extended Public Key (xpub)
- Single Address
Advantages:
- Tracks all derived addresses automatically
- Monitors both receiving and change addresses
- No need to know individual addresses
- Future-proof as new addresses are generated
- Single API call covers entire wallet
- HD wallet tracking
- Exchange cold storage monitoring
- Corporate treasury management
- Multi-user wallet services
Single Address Tracking
Monitor individual Bitcoin addresses:Example Bitcoin Balance Response
Transaction History
Get detailed Bitcoin transaction history with UTXO information:40 credits per request. Always sync transactions first for accuracy.
Portfolio Performance
Track Bitcoin wallet performance over time:Advanced Bitcoin Features
Multi-Signature Wallet Tracking
Monitor multi-sig wallets with detailed threshold information:UTXO Management
Track unspent transaction outputs for advanced wallet management:Fee Analysis
Monitor Bitcoin network fees and transaction costs:Address Format Support
Format | Prefix | Description | Example |
---|---|---|---|
xpub | xpub | Extended public key (Legacy) | xpub6BosfCnifzxc... |
ypub | ypub | Extended public key (P2WPKH-P2SH) | ypub6Ww3ibxVfGzL... |
zpub | zpub | Extended public key (P2WPKH) | zpub6rFR7y4Q2Aij... |
Legacy | 1 | P2PKH addresses | 1A1zP1eP5QGefi2D... |
SegWit | bc1 | P2WPKH/P2WSH addresses | bc1qw508d6qejxtdg... |
P2SH | 3 | Script hash addresses | 3J98t1WpEZ73CNmQ... |
Recommended: Use xpub/ypub/zpub for comprehensive wallet tracking instead of individual addresses.
Use Cases
Corporate Treasury
Track company Bitcoin holdings across multiple HD wallets using xpub keys
Exchange Monitoring
Monitor hot and cold wallet balances for cryptocurrency exchanges
DCA Tracking
Track dollar-cost averaging strategies across multiple addresses
Inheritance Planning
Monitor Bitcoin inheritance wallets with automated alerts
Common Bitcoin Addresses
For testing and development:Type | Address/Key | Description |
---|---|---|
Genesis Address | 1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa | Bitcoinβs first address |
SegWit Example | bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4 | Sample SegWit address |
Sample xpub | xpub6BosfCnifzxcFwrSzQiqu2DBVTshkCXacvNsWGYJVVhhawA7d4R5WSWGFNbi8Aw6ZRc1brxMyWMzG3DSSSSoekkudhUd9yLb6qx39T9nMdj | Test extended key |
xpub Security: Extended public keys reveal all derived addresses. Never share xpub keys publicly in production environments.
Bitcoin transaction syncing may take longer due to block confirmation requirements. Allow extra time for accurate data.