0.1.0 • Published 8 years ago

insight-client v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

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