0.0.5 • Published 6 years ago

altcoin-explorers v0.0.5

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

NPM Package

A module for altcoin-lib 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 hushcore-explorers

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

var explorers = require('hushcore-explorers');
var insight = new explorers.Insight();

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

IT'S FORK

Original: bitcore-explorers I don't support this package