import explorer from "payfutbol-currencytx";
let btcExplorer = new explorer.btcExplorer('btc');
btcExplorer.getUnTx().then(res=>{
console.log(res);
});
let blockIoExplorer = new explorer.blockIoExplorer('Your Api KEY');
blockIoExplorer.getBalance().then(res=>{
console.log(res);
});
let etherscanIoExplorer = new explorer.etherscanIoExplorer('mainnetcn');
etherscanIoExplorer.getSupply().then(res=>{
'use strict'
console.log(res);
});
let sochainExplorer = new explorer.sochainExplorer('btc');
sochainExplorer.getInfo().then(res=>{
'use strict'
console.log(res);
});
let blockchairExplorer = new explorer.blockchainExplorer('YourApiKey');
blockchairExplorer.setChain('erc20'); //Setting network
blockchairExplorer.getStats().then(res=>{
console.log(res);
})
let blockchairExplorer = new model.blockcypherExplorer('');
let chain = process.argv[2] ? process.argv[2] : 'btc';
blockchairExplorer.setChain(chain, 'main');
let cmd = process.argv[3] ? process.argv[3] : 'getHelper';
let params = process.argv[4] ? process.argv[4] : "";
eval(`blockchairExplorer.${cmd}('${params}')`).then(res=>{
console.log(JSON.stringify(res));
});
Object initialize
We need different parameters when initializing each channel, so let's give a brief introduction.
btcExplorer from BTC.com
This object requires that you initialize the supplied parameter as currency type. It includes BTC, LTC, BCH and ETH.
BTC
ETH
BCH
LTC
blockIoExplorer from Block.io
This object requires you to initialize the supplied parameter as api-key.
etherscanIoExplorer from etherscan.io
This object requires that you provide two parameters for initialization, namely network type and API-KEY.
network type
desc
mainnetcn
CN mainnet
mainnet
Common mainnet
rinkeby
Rinkeby
ropsten
Ropsten
kovan
Kovan
goerli
Goerli
ewc
Ewc
sochainExplorer from sochain.com
This object requires that you initialize the supplied parameter as currency networks type. It includes BTC,LTC, DOGE, DASH,ZEC, BTCTEST,DASHTEST,ZECTEST,DOGETEST,LTCTEST
Blockchain(Network)
Acronym
Info
Bitcoin
BTC
The main Bitcoin network. Currency has value.
Dash
DASH
The main Dash network. Currency has value.
Zcash
ZEC
The main Zcash network. Currency has value.
Dogecoin
DOGE
The main Dogecoin network. Currency has value.
Litecoin
LTC
The main Litecoin network. Currency has value.
Bitcoin (Test Net)
BTCTEST
The Bitcoin test network. Currency has no value.
Dash (Test Net)
DASHTEST
The Dash test network. Currency has no value.
Zcash (Test Net)
ZECTEST
The Zcash test network. Currency has no value.
Dogecoin (Test Net)
DOGETEST
The Dogecoin test network. Currency has no value.
Litecoin (Test Net)
LTCTEST
The Litecoin test network. Currency has no value.
blockchairExplorer from blockchair.com
This object requires that you initialize the supplied parameter as api_key. if you does not support api_key , Your request will be limited
support network
Blockchain(Netework)
Acronym
Group
Support status
Bitcoin
BTC
Bitcoin-like
Full support
Bitcoin cash
BCH
Bitcoin-like
Full support
Ethereum
ETH
Ethereum-like
Full support
Litecoin
LTC
Bitcoin-like
Full support
Bitcoin SV
BSV
Bitcoin-like
Full support
Dogecoin
DOGE
Bitcoin-like
Full support
Dash
DASH
Bitcoin-like
Full support
Ripple
XRP
Ripple-like
Alpha mode, possible compatibility-breaking changes
Groestlcoin
GRS
Groestlcoin
Full support, community-backed till June 18th, 2020
Stellar
XLM
Stellar-like
Alpha mode, possible compatibility-breaking changes
Omni Layer
OMNI
Omni-like
Alpha support
ERC-20
ERC20
ERC-20-like
Beta support
Test network support
Blockchain(Network)
Acronym
Group
Support
Bitcoin Testnet
BTCTEST
Bitcoin-like
Full support
blockcypherExplorer from blockcypher.com
This object requires that you initialize the supplied parameter as api_key. if you does not support api_key , Your request will be limited
support network
Coin
Chain
Resource
Bitcoin
Main
api.blockcypher.com/v1/btc/main
Bitcoin
Testnet3
api.blockcypher.com/v1/btc/test3
Dogecoin
Main
api.blockcypher.com/v1/doge/main
Litecoin
Main
api.blockcypher.com/v1/ltc/main
BlockCypher
Test
api.blockcypher.com/v1/bcy/test
Update remark
1. add a blockchain api(**sochain.com**)
2. update initialize params check
3. update donation address.
4. add a blockchain api(**blockcypher.com**)