Skip to content
pubscout

bdk_flutter

0.31.3, released a year ago by ltbl.io

Flutter library for the Bitcoin Development Kit (BDK) to build Bitcoin applications

WASM-ready
$ flutter pub add bdk_flutter
Source repository

What it does

It provides a Flutter wrapper around the Bitcoin Development Kit (BDK), enabling developers to create wallets, manage descriptors, handle transactions, and synchronize with the Bitcoin blockchain using Electrum or other backends.

AI-written summary of version 0.31.3, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You are building a Bitcoin wallet application in Flutter
  • You need to create and manage Bitcoin descriptors, keys, and mnemonics
  • You need to build, sign, and broadcast Bitcoin transactions

Skip it when

  • You are working with non-Bitcoin cryptocurrencies like Ethereum or Solana
  • You only need basic crypto hashing without wallet or blockchain features

Strengths

  • Backed by the official Bitcoin Development Kit (BDK)
  • Supports Android, iOS, and macOS
  • Provides low-level control over descriptors, wallets, and transactions

Weaknesses

  • Requires specific native setup (Android min SDK 23, Java 17, NDK)
  • Complex API surface requiring familiarity with Bitcoin concepts

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
Yes (build_runner)
Direct dependencies
6

Requires Android minSdkVersion API 23 or higher, Java 17, and android-ndk 26.3.11579264. iOS deployment target must be 12.0 or greater.

import 'package:bdk_flutter/bdk_flutter.dart';

final mnemonic = await Mnemonic.create(WordCount.words12);
final descriptorSecretKey = await DescriptorSecretKey.create(
  network: Network.testnet,
  mnemonic: mnemonic,
);
final externalDescriptor = await Descriptor.newBip44(
  secretKey: descriptorSecretKey,
  network: Network.testnet,
  keychain: KeychainKind.externalChain,
);

Alternatives

Packages that do the same job and could replace bdk_flutter.

  • web3dart

    Pick web3dart if you are building on Ethereum rather than Bitcoin.

  • blockchain_utils

    Pick blockchain_utils for general cryptocurrency utilities and serialization across multiple blockchains.

Works with

Packages commonly used together with bdk_flutter: ones it builds on, ones built on it, and its own family.