@owstack/bch-explorers

0.0.5 • Public • Published

Bch Blockchain APIs

NPM Package Build Status Coverage Status

A module for bch that implements HTTP requests to different Web APIs to query the state of the blockchain.

Getting started

Be careful! When using this module, the information retrieved from remote servers may be compromised and not reflect the actual state of the blockchain.

npm install bch-explorers
bower install bch-explorers

At the moment, only Explorer is supported, and only getting the UTXOs for an address and broadcasting a transaction.

var explorers = require('@owstack/bch-explorers');
var explorer = new explorers.Explorer();

explorer.getUtxos('1Bitcoin...', function(err, utxos) {
  if (err) {
    // Handle errors...
  } else {
    // Maybe use the UTXOs to create a transaction
  }
});

Contributing

See CONTRIBUTING.md on the main bch repo for information about how to contribute.

License

Code released under the MIT license.

Copyright 2017 Open Wallet Stack.

Readme

Keywords

Package Sidebar

Install

npm i @owstack/bch-explorers

Weekly Downloads

0

Version

0.0.5

License

MIT

Last publish

Collaborators

  • niahmiah
  • ajp8164