multi-explorer-client
v1.0.2
Published
multi explorer client
Downloads
2
Readme
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);
})