Add APIURL env for endpoint

This commit is contained in:
junderw 2019-04-09 12:09:43 +09:00
parent d9fd6d619a
commit 16823e9013
No known key found for this signature in database
GPG key ID: B256185D3A971908

View file

@ -10,7 +10,7 @@ const dhttp = options => new Promise((resolve, reject) => {
})
const APIPASS = process.env.APIPASS || 'satoshi'
const APIURL = 'https://regtest.bitbank.cc/1'
const APIURL = process.env.APIURL || 'https://regtest.bitbank.cc/1'
const NETWORK = bitcoin.networks.testnet
function broadcast (txHex) {