New: Introducing PHP and Composer Support.Read the Announcement
Socket
Book a DemoInstallSign in
Socket

insight-client

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

insight-client

A Node.JS client for the Bitcore Insight API.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 27 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts