blockbook 1.1.3

  • Readme
  • Changelog
  • Example
  • Installing
  • 71

Blockbook library #

pub package

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.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';

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

  Stream 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.3

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 Nov 8, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.6.0
  • pana: 0.12.21


Detected platforms: Flutter, other

Primary library: package:blockbook/blockbook.dart with components: io.

Health suggestions

Fix lib/src/blockbook_base.dart. (-0.50 points)

Analysis of lib/src/blockbook_base.dart reported 1 hint:

line 17 col 23: The value of the field '_sendTransactionPath' isn't used.

Maintenance suggestions

The package description is too short. (-8 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.4.0 <3.0.0
http ^0.12.0+2 0.12.0+2
web_socket_channel ^1.0.14 1.1.0
Transitive dependencies
async 2.4.0
charcode 1.1.2
collection 1.14.12
convert 2.1.1
crypto 2.1.3
http_parser 3.1.3
meta 1.1.8
path 1.6.4
source_span 1.5.5
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.8.0+1
test ^1.6.0