blockchair 0.1.1

  • Readme
  • Changelog
  • Example
  • Installing
  • 63

Blockbook library #

pub package

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

Usage #

A simple usage example:

import 'package:blockchair/blockchair.dart';

main() async {
  var client = new Blockchair('', apiKey: 'some key');
  print(await client.stats());

Features and bugs #

Please file feature requests and bugs at the issue tracker.

0.1.1 #

  • Add address calls

0.1.0 #

  • Initial version, created by Stagehand


import 'package:blockchair/blockchair.dart';

// ignore_for_file: avoid_print
main() async {
  var client = Blockchair('');
  print(await client.stats());

  print(await client.blocks([1,2]));


Use this package as a library

1. Depend on it

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

  blockchair: ^0.1.1

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:blockchair/blockchair.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 Mar 25, 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.7.0 <3.0.0
http ^0.12.0 0.12.0+4
Transitive dependencies
async 2.4.1
charcode 1.1.3
collection 1.14.12
http_parser 3.1.4
meta 1.1.8
path 1.6.4
source_span 1.7.0
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
Dev dependencies
pedantic ^1.8.0 1.9.0
test ^1.6.0