Registry / networking / lightningnetwork-lnd

lightningnetwork-lnd

JSON →
library0.0.2gogounverified

LND is a complete implementation of a Lightning Network node in Go.

go get github.com/lightningnetwork/lnd
INSTALL
IMPORT
SIG · LIGHTNINGNETWORK-L
L
lightningnetwork-lnd
networkinggov0.0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

lnd
github.com/lightningnetwork/lnd

Connect to a local LND node and fetch node info via gRPC.

package main import ( "context" "fmt" "github.com/lightningnetwork/lnd/lnrpc" "google.golang.org/grpc" ) func main() { conn, err := grpc.Dial("localhost:10009", grpc.WithInsecure()) if err != nil { panic(err) } defer conn.Close() client := lnrpc.NewLightningClient(conn) info, err := client.GetInfo(context.Background(), &lnrpc.GetInfoRequest{}) if err != nil { panic(err) } fmt.Printf("Node: %s\n", info.IdentityPubkey) }
Debug
Known issues
gotchaLND requires a running daemon and proper configuration; the library is for client interaction.
fix
Ensure LND is installed and running with appropriate RPC credentials.
affects: >=0.0.1
Upgrade
Version history
0.0.2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
lightningnetwork-lnd — go get lightningnetwork-lnd · libregistry