Skip to content

lukedevj/go-lnd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go-lnd

Just a simple library that calls LND API and returns a Json.

Donate Donate

package main

import (
  "github.com/lukedevj/go-lnd"
  "fmt"
)

func main() {
    client := lnd.Client{
      Host:     "127.0.0.1:8080",
      Cert:     "/home/dev/.lnd/tls.cert",
      Macaroon: "/home/dev/.lnd/chain/bitcoin/mainnet/invoices.macaroon",
    }
    invoice, _ := client.CreateInvoice(1, "Hello, word")
    fmt.Println(invoice)
    
}

About

Just a simple library that calls LND API and returns a Json.

Resources

License

Stars

Watchers

Forks

Languages