Graphql gateway for lnd
npm install lnd-graphql---
``shell`
$ npm install --save lnd-graphql
---
`js
const { getGraphQLConfig } = require('lnd-graphql')
getGraphQLConfig({
lndCertPath, // Default: darwin -> ~/Library/Application\ Support/Lnd/tls.cert
// linux -> ~/.lnd/tls.cert
// win32 -> %HOMEPATH%\AppData\Local\Lnd\tls.cert
lndMacaroonPath, // Default: darwin -> ~/Library/Application\ Support/Lnd/admin.macaroon
// linux -> ~/.lnd/admin.macaroon
// win32 -> %HOMEPATH%\AppData\Local\Lnd\admin.macaroon
lndAddress // Default: localhost:10009
}).then(({ typeDefs, resolvers }) => {
// use typeDefs and resolvers somewhere
})
`
---
- Using apollo-server-express
- Using graphql-yoga`
---
Donations: 3GHUWZ47MS3Yuyr7g8M3NwtmK2TAKhNVAh (BTC)