GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - lightninglabs/lndclient: Golang client library for lnd

BranchesTags
Open more actions menu

Latest commit

 

History

596 Commits
596 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
testdata
testdata
 
 
tools
tools
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
.golangci.yml
.golangci.yml
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
basic_client.go
basic_client.go
 
 
basic_client_test.go
basic_client_test.go
 
 
chainkit_client.go
chainkit_client.go
 
 
chainnotifier_client.go
chainnotifier_client.go
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
invoices_client.go
invoices_client.go
 
 
invoices_client_test.go
invoices_client_test.go
 
 
lightning_client.go
lightning_client.go
 
 
lightning_client_test.go
lightning_client_test.go
 
 
lnd_services.go
lnd_services.go
 
 
lnd_services_test.go
lnd_services_test.go
 
 
log.go
log.go
 
 
macaroon_pouch.go
macaroon_pouch.go
 
 
macaroon_recipes.go
macaroon_recipes.go
 
 
macaroon_recipes_test.go
macaroon_recipes_test.go
 
 
macaroon_service.go
macaroon_service.go
 
 
macaroon_service_test.go
macaroon_service_test.go
 
 
network.go
network.go
 
 
router_client.go
router_client.go
 
 
router_client_test.go
router_client_test.go
 
 
signer_client.go
signer_client.go
 
 
signer_client_test.go
signer_client_test.go
 
 
state_client.go
state_client.go
 
 
tx_utils.go
tx_utils.go
 
 
versioner_client.go
versioner_client.go
 
 
walletkit_client.go
walletkit_client.go
 
 
wtclient_client.go
wtclient_client.go
 
 

Repository files navigation

Golang client library for lnd

lndclient is a golang native wrapper for lnd's gRPC interface.

Compatibility matrix

This library depends heavily on lnd for obvious reasons. To support backward compatibility with older versions of lnd, we use different branches for different versions. There are two "levels" of depending on a version of lnd:

  • Code level dependency: This is the version of lnd that is pulled in when compiling lndclient. It is defined in go.mod. This usually is the latest released version of lnd, because its RPC definitions are kept backward compatible. This means that a new field added in the latest version of lnd might already be available in lndclient's code, but whether or not that field will actually be set at run time is dependent on the actual version of lnd that's being connected to.
  • RPC level dependency: This is defined in minimalCompatibleVersion in lnd_services.go. When connecting to lnd, the version returned by its version service is checked and if it doesn't meet the minimal required version defined in lnd_services.go, an error will be returned. Users of lndclient can also overwrite this minimum required version when creating a new client.

The current compatibility matrix reads as follows:

tag lnd version in go.mod minimum required lnd version
v0.18.5-13 v0.18.5-beta v0.18.5-beta
v0.20.0-4 v0.20.0-beta v0.19.0-beta
v0.21.0-1 v0.21.0-beta v0.21.0-beta

By default, lndclient requires (and enforces) the following RPC subservers to be active in lnd:

  • signrpc
  • walletrpc
  • chainrpc
  • invoicesrpc

Branch strategy

We follow the following strategy to maintain different versions of this library that have different lnd compatibilities:

  1. The master is always backward compatible with the last major version.
  2. We create branches for all minor versions and future major versions and merge PRs to those branches, if the features require that version to work.
  3. We rebase the branches if needed and use tags to track versions that we depend on in other projects.
  4. Once a new major version of lnd is final, all branches of minor versions lower than that are merged into master.

About

Golang client library for lnd

Resources

Readme
MIT license
Activity
Custom properties

Stars

57 stars

Watchers

11 watching

Forks

52 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.