Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

aynik/lnd-graphql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Graphql gateway for lnd

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published