npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

blocke-cli-api

v0.25.9

Published

Command-line tool to query the blockchain for a variety of cryptos. View blocks, transactions, and accounts (where applicable).

Downloads

30

Readme

blocke-CLI-API

Build Status Test Coverage Code Climate

##Copy project https://www.npmjs.com/package/blocke

Introduction

blocke is a command-line tool to query the blockchain for a variety of cryptocurrencies. View blocks, transactions, accounts (where applicable), and network information. Currently supports:

  • AEON
  • BCH
  • BCN
  • BTC
  • DASH
  • DCR
  • DGB
  • DOGE
  • ETH
  • GAME
  • KMD
  • LSK
  • LTC
  • RDD
  • SC
  • SIGT
  • VTC
  • WAVES
  • XDN
  • XMR
  • ZEC

With more on the way.

Installation CLI

$ npm install -g blocke-cli-api

Usage CLI

See blocke help and blocke help <command> (or the shorter blocke <command>) to view more information and instructions, as well as examples:

$ blocke help
$ blocke help btc
$ blocke btc

Run blocke <command> <value> to automatically search for the right type of <value>:

$ blocke btc 1JCe8z4jJVNXSjohjM4i9Hh813dLCNx2Sy
$ blocke ltc LdP8Qox1VAhCzLJNqrr74YovaWYyNBUWvL
$ blocke xmr a886ef5149902d8342475fee9bb296341b891ac67c4842f47a833f23c00ed721

Run blocke <command> <option> <value> to explicitly specify the type of value to retrieve:

$ blocke btc -a 1JCe8z4jJVNXSjohjM4i9Hh813dLCNx2Sy
$ blocke btc --account 1JCe8z4jJVNXSjohjM4i9Hh813dLCNx2Sy
$ blocke ltc -t bc6a355ec34194e43a590e86386a771af15c1eb88cc5ce614920a76e36388fe1
$ blocke ltc --transaction bc6a355ec34194e43a590e86386a771af15c1eb88cc5ce614920a76e36388fe1
$ blocke xmr -b a886ef5149902d8342475fee9bb296341b891ac67c4842f47a833f23c00ed721
$ blocke xmr --block a886ef5149902d8342475fee9bb296341b891ac67c4842f47a833f23c00ed721

Run blocke <command> -n to view network information:

$ blocke eth -n
$ blocke eth --network

Multiple option values can be specified by separating them with a single space:

$ blocke doge -a DFQc4NVAK7GvFQsHNciE8rcBw6t5ZQ3gdC A2ZA6JHq69WhKB3QxeUHDPokQT2iubUXLB -b 1687655 c151a40f121a4f0ee0078e0268563c8299ad12652f939d9c6880aab9a93c1969 -t 9f2ea5f34d3544ba9abad98251914e9408ba29272c35b6eaaa3abd2c00785a08 6363b3250152e02d80a4ab8faa7b7bae3f731b63417df782ac07dcdf9df0dde1
$ blocke sc -b 115300 102955 0000000000000028ecc091235afb82bd9aca66ebf175137336191ec1d28be993
$ blocke vtc -a VpXm5mcPfjZLuPuK45X69G7UfMPbCkwq2A VaqJQEU6DNFT6psST2yv39HmjHvSuixoyk -t 8f5de2a5417169e89d4104984a7c6e6d520d2ab467c963e18b543bfc6a52786c
$ blocke zec -n -b 150000 -a t3K4aLYagSSBySdrfAGGeUd5H9z5Qvz88t2

Many of the services used limit the number of requests allowed in a certain time period. While blocke will never throttle requests, be careful not to request too many values too quickly so as not to get temporarily IP banned.

Installation API

npm install blocke-cli-api

Usage API

const blockeApi = require('blocke-cli-api');

blockeApi.executeHandlerApi(coin, options, callback);

Run code:

options = {
    account: [ '1JCe8z4jJVNXSjohjM4i9Hh813dLCNx2Sy' ], // required false
    block: [ '371623' ], // required false
    transaction: [ '5756ff16e2b9f881cd15b8a7e478b4899965f87f553b6210d0f8e5bf5be7df1d' ], // required false
    network: true // required false
};

blockeApi.executeHandlerApi('btc', options, console.log)