lnd-graphql

0.0.28 • Public • Published

lnd-graphql npm version

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)

Readme

Keywords

none

Package Sidebar

Install

npm i lnd-graphql

Weekly Downloads

0

Version

0.0.28

License

ISC

Unpacked Size

68.4 kB

Total Files

13

Last publish

Collaborators

  • ayn1k