blockchain_monitor 0.1.6
blockchain_monitor: ^0.1.6 copied to clipboard

A high level blockchain monitoring library.

A high level blockchain monitoring library. #

pub package GH Actions

This library allows you to monitor blockchain events:

  • new block
  • new transaction for a particular address
  • new confirmation for a particular transaction

It does so by using 4 different public API's:

It uses 4 different API's for redundancy reasons. All events are normalized and de-duplicated.

Please note that this library does not contain any querying capabilities. Use the individual clients for that instead.

Usage #

A simple usage example:

import 'package:blockchain_monitor/blockchain_monitor.dart';

main() async {
  var monitor = new Monitor();
  Stream<Transaction> txs = monitor.address('some Bitcoin address');
  await for (tx in txs) {
    print(tx);
  }
  
  Stream<int> confirmations = monitor.confirmations('some tx hash');
  await for (confirmation in confirmations) {
    print(confirmation);
  }
  
  Stream<Block> blocks = monitor.blocks();
  await for (block in blocks) {
    print(block);
  }
}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

0
likes
45
pub points
33%
popularity

Publisher

Unknown

A high level blockchain monitoring library.

Repository (GitHub)
View/report issues

Documentation

API reference

License

AGPL 3.0 (LICENSE)

Dependencies

async, blockbook, blockchain_info, blockchair, blockcypher, equatable, logger, retry

More

Packages that depend on blockchain_monitor