Socket
Socket
Sign inDemoInstall

mutliblockz-node

Package Overview
Dependencies
6
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    mutliblockz-node

wrapper api for blockchain Explorer


Version published
Maintainers
1
Install size
4.29 MB
Created

Readme

Source

Mutliblockz Api Node.js Wrapper

Synopsis

This projects helps you to make HTTP requests to the blockchain explorer.

Installation

npm install multiblockz-node
var multiblockz = require('multiblockz-node');
// Public API

var client = new multiblockz();

Methods

  • status
  • api
  • history

STATUS

Examples You can obtain summary information about all our explorers

Request: /status

client.status(function (error, data) {
  if(error) console.log("E!",error)
  console.dir(data);

});

API

Examples Request: /api

param: 
  coins: string (symbol blockchain) example : ltc,btc,neo
  query: 
    addresses: returns a JSON object with the number of known and non-zero addresses (with funds)
    circulating: returns the number of circulating coins (minus reserve, Prime holdings...)
    getblockcount: returns the current block height as a plain text string
    getdifficulty: returns the difficulty as a plain text string
    hashrate: returns the hashrate in GH/s (when supported, blockchain.info API compatible)
    nethashps: returns the hashrate in H/s (when supported)
    netmhashps: returns the hashrate in MH/s (when supported)
    rich: returns the rich list top 1000 (JSON format)
    summary: returns summary information for all explorers
    ticker.btc: returns the last market ticker in BTC, as tracked by the explorer, only one market is tracked and this value can be several minutes behind the market. Use market APIs directly for more accurate quotations.
    ticker.usd: returns the last market ticker in USD, as tracked by the explorer and BitPay rate, only one market is tracked and this value can be several minutes behind the market. Use market APIs directly for more accurate quotations.
    totalbc: returns the outstanding number of coins in satoshis (x 1e8, for compatibility with blockhain.info API)
    totalcoins: returns the outstanding number of coins
var coins="ltc";
var query="getdifficulty";
client.api("ltc","getdifficulty",function (error, data) {
  if(error) console.log("E!",error)
  console.dir(data);

});

History

Examples Request: /history

param: 
  coins: string (symbol blockchain) example : ltc,btc,neo
  address: address of wallet
client.history(coins,address,function (error, data) {
  if(error) console.log("E!",error)
  console.dir(data);

});


API Reference

https://chainz.cryptoid.info/api.dws

Contributors

Anis Haboubi

License

See LICENSE.txt for more info.

Keywords

FAQs

Last updated on 23 Mar 2018

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc