Skip to content

owstack/btc-explorers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Btc Blockchain APIs

NPM Package Build Status Coverage Status

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

Attribution

This repository was created by copy forking bitcore-explorers commit 1f1334f.

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 btc-explorers
bower install btc-explorers

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

var explorers = require('@owstack/btc-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 btc repo for information about how to contribute.

License

Code released under the MIT license.

Copyright 2017 Open Wallet Stack.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published