insight-client

0.1.0 • Public • Published

insight-client

Build Status Dependency Status npm node

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"
};

Readme

Keywords

none

Package Sidebar

Install

npm i insight-client

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • montyanderson