aboutsummaryrefslogtreecommitdiffstats
path: root/lib/lnd.js
blob: bc2c054c0ec467788fbfb1430b8ce116c2ccc5ff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
import config from "$config/index.js";
import { authenticatedLndGrpc } from 'lightning';

const { cert, macaroon, socket } = config.lna;

const { lnd } = authenticatedLndGrpc({
  cert,
  macaroon,
  socket
});

export default lnd;