mirror of
https://github.com/fullstack-cash/bch-api.git
synced 2026-09-22 01:02:05 -07:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e96b9e7a44 | ||
|
|
d29f99965f |
@@ -32,7 +32,12 @@ class Electrum {
|
||||
this.bchjs = bchjs
|
||||
// _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(
|
||||
// 'bch-api',
|
||||
|
||||
Reference in New Issue
Block a user