lnd-graphql
v0.0.28
Published
Graphql gateway for lnd
Downloads
10
Readme
lnd-graphql
Graphql gateway for lnd ⚡️
Installation
$ npm install --save lnd-graphql
Usage
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
})
Examples
Donations: 3GHUWZ47MS3Yuyr7g8M3NwtmK2TAKhNVAh (BTC)