use mainnet for lightning

This commit is contained in:
Josh Harvey 2018-05-20 15:46:40 +03:00
parent 5d9533b7b4
commit 4f7efc1177
4 changed files with 116 additions and 414 deletions

12
dev/lnd-test.js Normal file
View file

@ -0,0 +1,12 @@
const lnd = require('lnd-async')
const path = require('path')
async function getInfo () {
let client = await lnd.connect({
certPath: path.resolve(__dirname, '../scratch/lnd/tls.cert'),
macaroonPath: path.resolve(__dirname, '../scratch/lnd/admin.macaroon')
})
return client.getInfo({})
}
getInfo().then(console.log)