You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.1 KiB
31 lines
1.1 KiB
|
|
let isTest = true;
|
|
const bitcoin = require('bitcoinjs-lib')
|
|
const constant = isTest ? {
|
|
//服务端连接
|
|
serverUrl: 'http://wallet-api.weirui0755.com',
|
|
coinTickerWs:'ws://wallet-quartz.weirui0755.com/websocket',
|
|
ethNode:'http://47.245.25.82:8545',
|
|
ethChainId:1,
|
|
btcNetwork:bitcoin.networks.testnet,
|
|
btcUtxo:'https://chain.so/api/v2/get_tx_unspent/BTCTEST/',
|
|
btcSendTransaction:'https://chain.so/api/v2/send_tx/BTCTEST',
|
|
ethTransctionDetail:'https://cn.etherscan.com/tx/',
|
|
trxTransctionDetail:'https://tronscan.io/#/transaction/',
|
|
checkIp:'https://app.bilibili.com'
|
|
} : {
|
|
//服务端连接
|
|
serverUrl: 'https://api.bitcooo.com',
|
|
coinTickerWs:'wss://quartz.bitcooo.com/websocket',
|
|
ethNode:'https://mainnet.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161',
|
|
ethChainId:1,
|
|
btcNetwork:bitcoin.networks,
|
|
btcUtxo:'https://chain.so/api/v2/get_tx_unspent/BTC/',
|
|
btcSendTransaction:'https://chain.so/api/v2/send_tx/BTCTEST',
|
|
ethTransctionDetail:'https://cn.etherscan.com/tx/',
|
|
trxTransctionDetail:'https://tronscan.io/#/transaction/'
|
|
}
|
|
|
|
export default {
|
|
constant,isTest
|
|
}
|
|
|