1.4.0 • Published 4 years ago

payfutbol-currencytx v1.4.0

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

currencytx by explorer

Pay futbol

Multiple third-party channel currencies are consolidated to allow simultaneous query of multiple currencies

  • Pay futbol blockchain explorer search tools
logoidnameverdoccertified
block.ioblock.io2Apipayfutbol Certified
btc.combtc.com3Apipayfutbol Certified
SoChainSoChain2Apipayfutbol Certified
EtherscanEtherscan*Apipayfutbol Certified
BlockchairBlockchair2.0.39Apipayfutbol Certified
BlockCypherBlockcypher1Api

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.

  1. BTC
  2. ETH
  3. BCH
  4. 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 typedesc
    mainnetcnCN mainnet
    mainnetCommon mainnet
    rinkebyRinkeby
    ropstenRopsten
    kovanKovan
    goerliGoerli
    ewcEwc

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)AcronymInfo
BitcoinBTCThe main Bitcoin network. Currency has value.
DashDASHThe main Dash network. Currency has value.
ZcashZECThe main Zcash network. Currency has value.
DogecoinDOGEThe main Dogecoin network. Currency has value.
LitecoinLTCThe main Litecoin network. Currency has value.
Bitcoin (Test Net)BTCTESTThe Bitcoin test network. Currency has no value.
Dash (Test Net)DASHTESTThe Dash test network. Currency has no value.
Zcash (Test Net)ZECTESTThe Zcash test network. Currency has no value.
Dogecoin (Test Net)DOGETESTThe Dogecoin test network. Currency has no value.
Litecoin (Test Net)LTCTESTThe 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)AcronymGroupSupport status
BitcoinBTCBitcoin-likeFull support
Bitcoin cashBCHBitcoin-likeFull support
EthereumETHEthereum-likeFull support
LitecoinLTCBitcoin-likeFull support
Bitcoin SVBSVBitcoin-likeFull support
DogecoinDOGEBitcoin-likeFull support
DashDASHBitcoin-likeFull support
RippleXRPRipple-likeAlpha mode, possible compatibility-breaking changes
GroestlcoinGRSGroestlcoinFull support, community-backed till June 18th, 2020
StellarXLMStellar-likeAlpha mode, possible compatibility-breaking changes
Omni LayerOMNIOmni-likeAlpha support
ERC-20ERC20ERC-20-likeBeta support

Test network support

Blockchain(Network)AcronymGroupSupport
Bitcoin TestnetBTCTESTBitcoin-likeFull 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

CoinChainResource
BitcoinMainapi.blockcypher.com/v1/btc/main
BitcoinTestnet3api.blockcypher.com/v1/btc/test3
DogecoinMainapi.blockcypher.com/v1/doge/main
LitecoinMainapi.blockcypher.com/v1/ltc/main
BlockCypherTestapi.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**)

donation

  • BCH bitcoincash:qqm65p0mvuutegqene9g9ya3v6rv7vxra5278v95gm
  • BTC 12rX8FQLop9jJtUKWJm3USXJ9q64NJAoNr
  • ETH 0x41a2caf1bc82c022327a949a5b1867d42a0e786c
  • LTC LcrUgfLYYAD7JY7WMk4Y7wuineTRvLsUz4
  • DOGE DKk4cx6bCoRTArbhbNbvtjKMcP4Pv2gSo9
1.4.0

4 years ago

1.3.9

4 years ago

1.3.8

4 years ago

1.3.7

4 years ago

1.3.6

4 years ago

1.3.5

4 years ago

1.3.4

4 years ago

1.3.3

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.9

4 years ago

1.2.8

4 years ago

1.2.7

4 years ago

1.2.6

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago