
Company News
Meet the Socket Team at RSAC and BSidesSF 2026
Join Socket for live demos, rooftop happy hours, and one-on-one meetings during BSidesSF and RSA 2026 in San Francisco.
bitcoindevkit
Advanced tools
A modern, lightweight, descriptor-based wallet library in WebAssembly for browsers and Node
The bdk-wasm library aims at providing access to the excellent BitcoinDevKit to JS and Node environments (and eventually any device supporting WebAssembly).
It specializes in compiling BDK on the wasm32-unknown-unknown target and use wasm-bindgen to create TypeScript bindings.
This repo handles the packaging and publishing of the bitcoindevkit NPM package, using wasm-pack.
This library offers all the desired functionality to build a Bitcoin wallet out of the box:
For a lightweight library providing stateless utility functions, see bitcoinjs.
yarn add bitcoindevkit
[!WARNING] There are several limitations to using BDK in WASM. Basically any functionality that requires the OS standard library is not directly available in WASM. However, there are viable workarounds documented below. Some key limitations include:
- No access to the file system
- Network access is limited to http(s)
With no direct access to the file system, persistence cannot be handled by BDK directly. Instead, an in memory wallet must be used in the WASM environment, and the data must be exported using wallet.take_staged(). This will export the changeset for the updates to the wallet state, which must then be merged with current wallet state in JS (will depend on your persistence strategy). The persisted ChangeSet can be passed to wallet.load() to recover the wallet.
This essentially means the library only supports Esplora as blockchain client. Both RPC and Electrum clients require sockets and will not work for BDK in a WASM environment out of the box.
Refers to this section.
wasm-pack build[!IMPORTANT] You need the
wasm32-unknown-unknowntoolchain to be installed:rustup target add wasm32-unknown-unknown
wasm-pack build
Choose your desired features when building:
--features "esplora"
wasm-pack testwasm-pack test --headless --firefox
Works with
--firefox,--chromeor--safari.
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
FAQs
A modern, lightweight, descriptor-based wallet library in WebAssembly for browsers and Node
We found that bitcoindevkit demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Join Socket for live demos, rooftop happy hours, and one-on-one meetings during BSidesSF and RSA 2026 in San Francisco.

Research
/Security News
Malicious Packagist packages disguised as Laravel utilities install an encrypted PHP RAT via Composer dependencies, enabling remote access and C2 callbacks.

Research
/Security News
OpenVSX releases of Aqua Trivy 1.8.12 and 1.8.13 contained injected natural-language prompts that abuse local AI coding agents for system inspection and potential data exfiltration.