currencytx by explorer
Multiple third-party channel currencies are consolidated to allow simultaneous query of multiple currencies
- Pay futbol blockchain explorer search tools
logo | id | name | ver | doc | certified |
---|---|---|---|---|---|
block.io | block.io | 2 | Api | ||
btc.com | btc.com | 3 | Api | ||
SoChain | SoChain | 2 | Api | ||
Etherscan | Etherscan | * | Api | ||
Blockchair | Blockchair | 2.0.39 | Api | ||
BlockCypher | Blockcypher | 1 | Api |
INSTALL
npm install payfutbol-currencytx
Run Code
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 check3. update donation address.4. add a blockchain api(**blockcypher.com**)
donation
- BCH bitcoincash:qqm65p0mvuutegqene9g9ya3v6rv7vxra5278v95gm
- BTC 12rX8FQLop9jJtUKWJm3USXJ9q64NJAoNr
- ETH 0x41a2caf1bc82c022327a949a5b1867d42a0e786c
- LTC LcrUgfLYYAD7JY7WMk4Y7wuineTRvLsUz4
- DOGE DKk4cx6bCoRTArbhbNbvtjKMcP4Pv2gSo9