blockbook 1.1.4

  • Readme
  • Changelog
  • Example
  • Installing
  • 71

Blockbook library #

pub package CircleCI

A library for communicating with the Blockbook API. Some calls are missing.

Usage #

A simple usage example:

import 'package:blockbook/blockbook.dart';

main() {
  var client = new Blockbook();

Installing #

Add it to your pubspec.yaml:

  bity: any

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.

Features and bugs #

Please file feature requests and bugs at the issue tracker.

1.1.4 #

  • Add subscribeNewBlock

1.1.3 #

  • Add ping

1.1.2 #

  • Export configured URLs

1.1.1 #

  • Fix websocket call

1.1.0 #

  • Add websocket calls

1.0.0 #

  • Initial version with REST calls


import 'package:blockbook/blockbook.dart';

void main(List<String> args) async {
  var client =
      Blockbook('', 'wss://');
  print('status:\n ${await client.status()}');

  var txs = client.subscribeAddresses([args[0]]);
  txs = txs.handleError(print);
  await for (var tx in txs) {

Use this package as a library

1. Depend on it

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

  blockbook: ^1.1.4

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:blockbook/blockbook.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 Jan 24, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.0
  • pana: 0.13.4


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.4.0 <3.0.0
http ^0.12.0+3 0.12.0+4
web_socket_channel ^1.1.0 1.1.0
Transitive dependencies
async 2.4.0
charcode 1.1.2
collection 1.14.12
convert 2.1.1
crypto 2.1.4
http_parser 3.1.3
meta 1.1.8
path 1.6.4
source_span 1.6.0
stream_channel 2.0.0
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
Dev dependencies
pedantic ^1.7.0 1.9.0
test ^1.6.0