{"id":41173633,"url":"https://github.com/chainpoint/lightning-go","last_synced_at":"2026-01-22T19:50:15.702Z","repository":{"id":40397184,"uuid":"467683834","full_name":"chainpoint/lightning-go","owner":"chainpoint","description":"Lightning (lnd) grpc client in golang","archived":false,"fork":false,"pushed_at":"2022-10-07T03:33:49.000Z","size":180,"stargazers_count":1,"open_issues_count":0,"forks_count":4,"subscribers_count":5,"default_branch":"main","last_synced_at":"2023-08-07T11:21:47.024Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chainpoint.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-08T21:38:44.000Z","updated_at":"2023-02-27T09:13:12.000Z","dependencies_parsed_at":"2023-01-19T14:45:18.881Z","dependency_job_id":null,"html_url":"https://github.com/chainpoint/lightning-go","commit_stats":null,"previous_names":[],"tags_count":15,"template":null,"template_full_name":null,"purl":"pkg:github/chainpoint/lightning-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainpoint%2Flightning-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainpoint%2Flightning-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainpoint%2Flightning-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainpoint%2Flightning-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chainpoint","download_url":"https://codeload.github.com/chainpoint/lightning-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainpoint%2Flightning-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28669720,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T19:36:09.361Z","status":"ssl_error","status_checked_at":"2026-01-22T19:36:05.567Z","response_time":144,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-22T19:50:15.182Z","updated_at":"2026-01-22T19:50:15.697Z","avatar_url":"https://github.com/chainpoint.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lightning-go\n\n[![License](https://img.shields.io/badge/license-MIT-green)](https://opensource.org/licenses/MIT)\n\nThis golang library is used by [Chainpoint Core](https://github.com/chainpoint/chainpoint-core) to connect with a \n[Lightning Network Daemon](https://github.com/lightningnetwork/lnd) over grpc. By default Lightning, Wallet, WalletUnlocker, and \nInvoice clients are available. A number of convenience methods for working with Lightning Service Authentication Tokens and interacting\nwith the Bitcoin blockchain are also provided. By default this library is intended to work with Tierion Inc's [fork of lnd](https://github.com/Tierion/lnd/tree/v0.14.1-beta-tierion),\nbut other than exposing a block retrieval method, there is little difference from the original repository.\n\n## Install \n\nThis package requires Go modules.\n\n`go get github.com/chainpoint/lightning-go`\n\n## Usage\n\nA basic example of declaring the library is provided below.\n\n```go\npackage main\n\nimport (\n    lightning \"github.com/chainpoint/lightning-go\"\n    \"encoding/json\"\n    \"fmt\"\n    \"time\"\n)\n\nfunc main() {\n    lndClient := lightning.LightningClient{\n                        TlsPath:             \"/home/ubuntu/.lnd/tls.cert\",\n                        MacPath:             \"/home/ubuntu/.lnd/data/chain/bitcoin/mainnet/admin.macaroon\",\n                        ServerHostPort:      \"127.0.0.1:10009\",\n                        LndLogLevel:         \"error\",\n                        MinConfs:            3,\n                        Testnet:             \"mainnet\",\n                        WalletAddress:       \"your_wallet_address\",\n                        WalletPass:          \"your_wallet_password\",\n                        WalletSeed:          \"your_wallet_seed\",\n                        HashPrice:           int64(2), //price to charge for issuing LSAT\n                        SessionSecret:       \"a mutual secret between lsat servers and clients\",\n                  }\n     lndClient.WaitForConnection(5 * time.Minute)  //Wait until lnd is ready\n     lndClient.Unlocker()                          //Unlock wallet \n     info, err := lndClient.GetInfo()              //Make a call to get lnd node info\n     if err == nil {\n         infoJson, _ := json.Marshal(info)\n         fmt.Println(string(infoJson)) \n     }\n}\n```\nAdditionally an example of a server-side LSAT flow, RespondLSAT, is provided in `lsat.go`\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchainpoint%2Flightning-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchainpoint%2Flightning-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchainpoint%2Flightning-go/lists"}