mirror of
https://github.com/fullstack-cash/bch-api.git
synced 2026-09-22 17:22:04 -07:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1c9e0858de | ||
|
|
41a3cd91fc |
@@ -13,8 +13,11 @@ const Slpdb = require('./services/slpdb')
|
|||||||
// const strftime = require('strftime')
|
// const strftime = require('strftime')
|
||||||
const wlogger = require('../../util/winston-logging')
|
const wlogger = require('../../util/winston-logging')
|
||||||
|
|
||||||
|
const LOCAL_RESTURL = process.env.LOCAL_RESTURL
|
||||||
|
? process.env.LOCAL_RESTURL
|
||||||
|
: 'https://api.fullstack.cash/v3/'
|
||||||
const BCHJS = require('@psf/bch-js')
|
const BCHJS = require('@psf/bch-js')
|
||||||
const bchjs = new BCHJS()
|
const bchjs = new BCHJS({ restURL: LOCAL_RESTURL })
|
||||||
|
|
||||||
// Used to convert error messages to strings, to safely pass to users.
|
// Used to convert error messages to strings, to safely pass to users.
|
||||||
const util = require('util')
|
const util = require('util')
|
||||||
|
|||||||
Reference in New Issue
Block a user