multi-explorer-client

1.0.2 • Public • Published

Node Multi Explorer Client

コレ1つでいいです
It is not necessary other than this
(これ以上ライブラリを増やしたくない)
(I do not want to increase the number of libraries any more)

下記のエクスプローラーに対応しています
(It corresponds to the following explorer)

Install

npm i multi-expoloer-client

Use

const client = require('multi-explorer-client');

//insight,iqudus
let zny = client.selecter(
    client.explorer.insight,
    'https://insight.bitzeny.jp/api');  //api url
zny.selecter(
    'addr',
    'ZxBNHC97x1X7o3ACSqbLPaUVj3YwkaCzPY',
    {
        noTxList:1
    },
    (req, res, body) => {
        console.log(body);
    })

//cryptobe
let shnd = client.selecter(
    client.explorer.cryptobe,
    '');    //null
shnd.selecter(
    'addressbalance',
    'StrongHands',
    'SQntCWLsNGQodgykfyXD1zjCr2RPAoBc1x',
    (req, res, body) => {
        console.log(body);
    })

//cryptoid
let xp = client.selecter(
    client.explorer.cryptoid,
    '');    //'' or apikey
    
xp.selecter(
    'getbalance',
    'xp',
    'XGZjewkqwmCiUeojiZb1McVtHRaFT69rB9',
    (req, res, body) => {
        console.log(body);
    })

Donation

Give Me

/multi-explorer-client/

    Package Sidebar

    Install

    npm i multi-explorer-client

    Weekly Downloads

    0

    Version

    1.0.2

    License

    MPL-2.0

    Unpacked Size

    28.4 kB

    Total Files

    9

    Last publish

    Collaborators

    • zinntikumugai