btcnano-explorers

0.1.0 • Public • Published

Blockchain APIs for btcnano

NPM Package Build Status Coverage Status

A module for bitcore 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 btcnano-explorers
bower install btcnano-explorers

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

var explorers = require('bitcore-explorers');
var insight = new explorers.Insight();
 
insight.getUtxos('1Btcnano...', function(err, utxos) {
  if (err) {
    // Handle errors...
  } else {
    // Maybe use the UTXOs to create a transaction
  }
});

Contributing

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

License

Code released under the MIT license.

Copyright 2015-2021 Btcnano, Inc. Btcnano is a trademark maintained by Btcnano, Inc.

Package Sidebar

Install

npm i btcnano-explorers

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • jackchen0120