stacker.news/api/lnd/index.js

13 lines
268 B
JavaScript
Raw Normal View History

2021-04-29 21:58:43 +00:00
import lndService from 'ln-service'
if (!global.lnd) {
const { lnd } = lndService.authenticatedLndGrpc({
cert: process.env.LND_CERT,
macaroon: process.env.LND_MACAROON,
socket: process.env.LND_SOCKET
})
global.lnd = lnd
}
export default global.lnd