npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@tetherto/wdk-wallet-btc

v1.0.0-beta.18

Published

Bitcoin wallet module for WDK (Wallet Development Kit) by Tether, supporting BIP-84 Native SegWit and BIP-44 legacy accounts.

Readme

@tetherto/wdk-wallet-btc

npm version npm downloads license docs

Note: This package is currently in beta. Please test thoroughly in development environments before using in production.

A Bitcoin wallet module for WDK (Wallet Development Kit) by Tether. It derives BIP-84 Native SegWit or BIP-44 legacy accounts from BIP-39 seed phrases and supports balance queries, transaction signing and broadcasting, transfer history, and message signing.

About WDK

This module is part of the WDK (Wallet Development Kit) project, which empowers developers to build secure, non-custodial wallets with unified blockchain access, stateless architecture, and complete user control.

For detailed documentation about the complete WDK ecosystem, visit docs.wdk.tether.io.

Installation

npm install @tetherto/wdk-wallet-btc

Quick Start

Existing BIP-44 wallets: Since v1.0.0-beta.4, the default is BIP-84. When reopening a wallet created with the earlier BIP-44 default, set bip: 44; otherwise, the same seed derives different addresses. See Configuration for derivation details.

Security: The seed phrase below is public test data. Never use it to hold funds. Generate and protect a unique BIP-39 seed phrase before using a wallet in production.

import WalletManagerBtc from '@tetherto/wdk-wallet-btc'

const seedPhrase = 'cook voyage document eight skate token alien guide drink uncle term abuse'

const wallet = new WalletManagerBtc(seedPhrase, {
  network: 'bitcoin',
  bip: 84
})

const account = await wallet.getAccount(0)
const address = await account.getAddress()
console.log('Address:', address)

wallet.dispose()

Call dispose() when finished to erase account private-key material and close internally managed client connections. Never log or expose the seed phrase or account.keyPair.privateKey.

Key Capabilities

  • BIP-39 Wallets: Derive multiple Bitcoin accounts from a seed phrase
  • BIP-84 and BIP-44 Support: Use Native SegWit addresses by default or retain legacy P2PKH derivation
  • Bitcoin Transactions: Quote, sign, and broadcast single-recipient BTC transactions
  • UTXO Account Data: Query balances, transfer history, confirmed receipts, and maximum spendable amounts
  • Message Signing: Sign messages and verify signatures for Bitcoin accounts
  • Read-Only Accounts: Monitor an address and verify signatures without exposing a private key
  • Flexible Clients: Use Blockbook HTTP, Electrum over TCP, TLS, SSL, or WebSocket, custom clients, and ordered failover
  • Fee Management: Retrieve network fee rates and quote transaction costs in satoshis
  • Secure Memory Disposal: Erase private-key material and close internally managed connections when done

Compatibility

  • Networks: Bitcoin mainnet, testnet, and regtest
  • Address Types: BIP-84 P2WPKH (Native SegWit) and BIP-44 P2PKH (legacy)
  • Bitcoin Clients: Blockbook HTTP, Electrum TCP/TLS/SSL/WebSocket, or a custom IBtcClient
  • Runtimes: Node.js and Bare

Production clients: The default public Electrum endpoint is provided for convenience. Configure a Bitcoin service you operate or trust for production; public endpoints can be slow or unavailable for addresses with extensive transaction histories. See Configuration for Electrum, Blockbook, custom-client, and failover options.

TLS/SSL: Electrum TLS and SSL connections verify the server certificate and hostname. Configure a certificate trusted by the client; self-signed or hostname-mismatched certificates are rejected. The default plaintext TCP transport is unchanged.

Documentation

| Topic | Description | Link | |-------|-------------|------| | Overview | Module overview and feature summary | Wallet BTC Overview | | Usage | End-to-end integration walkthrough | Wallet BTC Usage | | Configuration | Network, derivation, client, and failover configuration | Wallet BTC Configuration | | API Reference | Complete class, client, and type reference | Wallet BTC API Reference |

Community

Join the WDK Discord to connect with other developers.

Support

For support, please open an issue on GitHub or reach out via email.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.