https://github.com/bitpay/bitcore-explorers
Blockchain APIs for bitcore
https://github.com/bitpay/bitcore-explorers
Last synced: 9 months ago
JSON representation
Blockchain APIs for bitcore
- Host: GitHub
- URL: https://github.com/bitpay/bitcore-explorers
- Owner: bitpay
- License: mit
- Created: 2015-01-14T19:48:57.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2023-03-08T08:48:53.000Z (over 3 years ago)
- Last Synced: 2025-03-31T05:05:52.110Z (about 1 year ago)
- Language: JavaScript
- Homepage: http://bitcore.io
- Size: 1.05 MB
- Stars: 68
- Watchers: 14
- Forks: 84
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Blockchain APIs for bitcore
[](https://www.npmjs.org/package/bitcore-explorers)
[](https://travis-ci.org/bitpay/bitcore-explorers)
[](https://coveralls.io/r/bitpay/bitcore-explorers)
A module for [bitcore](https://github.com/bitpay/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.
```sh
npm install bitcore-explorers
bower install bitcore-explorers
```
At the moment, only Insight is supported, and only getting the UTXOs for an address and broadcasting a transaction.
```javascript
var explorers = require('bitcore-explorers');
var insight = new explorers.Insight();
insight.getUtxos('1Bitcoin...', function(err, utxos) {
if (err) {
// Handle errors...
} else {
// Maybe use the UTXOs to create a transaction
}
});
```
## Contributing
See [CONTRIBUTING.md](https://github.com/bitpay/bitcore/blob/master/CONTRIBUTING.md) on the main bitcore repo for information about how to contribute.
## License
Code released under [the MIT license](https://github.com/bitpay/bitcore/blob/master/LICENSE).
Copyright 2013-2015 BitPay, Inc. Bitcore is a trademark maintained by BitPay, Inc.
[bitcore]: http://github.com/bitpay/bitcore-explorers