bitcoin_bip44 0.1.2

  • Readme
  • Changelog
  • Example
  • Installing
  • 62

BIP44 #

pub package CircleCI

An implementation of the BIP44 spec for organizing Hierarchical Deterministic Bitcoin addresses. Based on the BIP32 spec.

Examples #

var bip44 = Bip44("<some hex seed>");
List<Account> accounts = bip44.coins[0].accounts // coin 0 is bitcoin

Discovery #

The specification mandates that accounts, and ultimately addressess, are discoverable. Currently only two remote sources can be queried: Blockchair and Blockstream. The Scanner interface should make it easier to add sources.

Supported coins #

It is trivial to add more iff the coin appears in SLIP44.

  • Bitcoin
  • Testnets
  • Litecoin

Installing #

Add it to your pubspec.yaml:

  bitcoin_bip44: ^0.1.0


  • Make the scanners robust versus exceptions thrown by the remotes
  • Add Scanner for locally run Bitcoin node
  • Only the first scanner is ever used
  • Only traditional Bitcoin addresses (starting with a '1') are scanned for, add segwit
  • Add 'Address gap limit'
  • Cache address scanning

Licence overview #

All files in this repository fall under the license specified in COPYING. The project is licensed as AGPL with a lesser clause. It may be used within a proprietary project, but the core library and any changes to it must be published online. Source code for this library must always remain free for everybody to access.


  • Upgrade deps and various linter nits v0.1.1
  • Add Future imports to satify dartanalyzer v0.1.0
  • Initial release


import 'package:bitcoin_bip44/bitcoin_bip44.dart';

void main() {
  Bip44 bip44 = Bip44(toHexString('some seed'));
  Coin bitcoin = bip44.coins[0];
  var account = Account(bitcoin, 0, changeExternal);
  account.nextUnusedAddress().then((address) => print(address));

  // Add a scanner of your own:
  scanners = [MyOwnScanner()];

class MyOwnScanner extends Scanner {
  Future<bool> present(String address) {
    // Total nonsense!
    if (address.endsWith('b')) {
      return Future.value(false);
    return Future.value(true);

String toHexString(String original) {
  return original.codeUnits
      .map((c) => c.toRadixString(16).padLeft(2, '0'))

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  bitcoin_bip44: ^0.1.2

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:bitcoin_bip44/bitcoin_bip44.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Apr 7, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.6


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.4.0 <3.0.0
base58check ^1.0.1 1.0.1
bech32 ^0.1.2 0.1.2
bitcoin_bip32 ^0.1.1 0.1.1
http ^0.12.0 0.12.0+4
pointycastle ^1.0.2 1.0.2
Transitive dependencies
async 2.4.1
charcode 1.1.3
collection 1.14.12
convert 2.1.1
crypto 2.1.4
http_parser 3.1.4
meta 1.1.8
path 1.6.4
pedantic 1.9.0
source_span 1.7.0
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
Dev dependencies
hex ^0.1.2
test ^1.14.2