Add APIURL env for endpoint
This commit is contained in:
parent
d9fd6d619a
commit
16823e9013
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ const dhttp = options => new Promise((resolve, reject) => {
|
||||||
})
|
})
|
||||||
|
|
||||||
const APIPASS = process.env.APIPASS || 'satoshi'
|
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
|
const NETWORK = bitcoin.networks.testnet
|
||||||
|
|
||||||
function broadcast (txHex) {
|
function broadcast (txHex) {
|
||||||
|
|
Loading…
Reference in a new issue