You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
341 B

import config from './config'
import lightning from './lib/lightning'
const lnd = lightning(config.lightningRpc, config.lightningHost)
export function info() {
return new Promise((resolve, reject) => {
lnd.getInfo({}, (err, data) => {
if (err) { reject(err) }
resolve(data)
})
})
}
export default {
info
}