insight-client
v0.1.0
Published
A Node.JS client for the Bitcore Insight API.
Downloads
2
Readme
insight-client
A Node.JS client for the Bitcore Insight API.
Getting Started
$ npm install insight-client --save
const insight = require("insight-client");
const node = new insight("https://insight.bitpay.com/api");
node.blockIndex(100, function(err, data) {
console.log(err || data);
});
Endpoints
The endpoints are as listed:
const endpoints = {
block: "block",
blockIndex: "block-index",
tx: "tx",
rawtx: "rawtx",
addr: "addr",
addrs: "addrs",
txs: "txs",
sync: "sync",
peer: "peer"
};