use mainnet for lightning
This commit is contained in:
parent
5d9533b7b4
commit
4f7efc1177
4 changed files with 116 additions and 414 deletions
12
dev/lnd-test.js
Normal file
12
dev/lnd-test.js
Normal 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue