mirror of
https://github.com/fullstack-cash/bch-api.git
synced 2026-09-22 17:22:04 -07:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e96b9e7a44 | ||
|
|
d29f99965f |
@@ -32,7 +32,12 @@ class Electrum {
|
|||||||
this.bchjs = bchjs
|
this.bchjs = bchjs
|
||||||
// _this.bitcore = bitcore
|
// _this.bitcore = bitcore
|
||||||
|
|
||||||
this.fulcrumApi = 'http://fulcrum-api.fullstackbch.nl/v1/'
|
this.fulcrumApi = process.env.FULCRUM_API
|
||||||
|
if (!this.fulcrumApi) {
|
||||||
|
throw new Error(
|
||||||
|
'FULCRUM_API env var not set. Can not connect to Fulcrum indexer.'
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
// _this.electrumx = new ElectrumCash(
|
// _this.electrumx = new ElectrumCash(
|
||||||
// 'bch-api',
|
// 'bch-api',
|
||||||
|
|||||||
Reference in New Issue
Block a user