{"id":15464369,"url":"https://github.com/icebaker/lnd-client","last_synced_at":"2025-07-22T17:34:24.464Z","repository":{"id":65422725,"uuid":"591968834","full_name":"icebaker/lnd-client","owner":"icebaker","description":"Ruby Lightning Network Daemon (lnd) Client.","archived":false,"fork":false,"pushed_at":"2023-11-10T21:00:54.000Z","size":308,"stargazers_count":5,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-25T11:00:02.882Z","etag":null,"topics":["bitcoin","grpc","lightning","lightning-network","lnd","ruby"],"latest_commit_sha":null,"homepage":"https://icebaker.github.io/lnd-client","language":"Ruby","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/icebaker.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-22T14:18:51.000Z","updated_at":"2024-09-24T22:16:41.000Z","dependencies_parsed_at":"2024-12-09T13:41:25.687Z","dependency_job_id":"94aaf06a-8a31-4b5e-b2ef-23a2748e400f","html_url":"https://github.com/icebaker/lnd-client","commit_stats":{"total_commits":39,"total_committers":1,"mean_commits":39.0,"dds":0.0,"last_synced_commit":"fc41a41d395bb284601eacacbaa2468c2c47756d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/icebaker/lnd-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icebaker%2Flnd-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icebaker%2Flnd-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icebaker%2Flnd-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icebaker%2Flnd-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/icebaker","download_url":"https://codeload.github.com/icebaker/lnd-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icebaker%2Flnd-client/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266539790,"owners_count":23945085,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":["bitcoin","grpc","lightning","lightning-network","lnd","ruby"],"created_at":"2024-10-02T00:34:43.965Z","updated_at":"2025-07-22T17:34:24.441Z","avatar_url":"https://github.com/icebaker.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lnd-client [![Gem Version](https://badge.fury.io/rb/lnd-client.svg)](https://badge.fury.io/rb/lnd-client) ![RSpec Tests Status](https://github.com/icebaker/lnd-client/actions/workflows/ruby-rspec-tests.yml/badge.svg)\n\nRuby Lightning Network Daemon Client: Straightforward access to [lnd](https://github.com/lightningnetwork/lnd) [gRPC API](https://lightning.engineering/api-docs/api/lnd/#grpc)\n\nThis is a low-level client library. For a better experience, you may want to check out the [Lighstorm](https://github.com/icebaker/lighstorm) abstraction.\n\n- [Usage](#usage)\n  - [Documentation](https://icebaker.github.io/lnd-client)\n- [Available Supported Services](#available-supported-services)\n- [Development](#development)\n  - [Upgrading gRPC Proto Files](#upgrading-grpc-proto-files)\n  - [Generating Documentation](#generating-documentation)\n  - [Publish to RubyGems](#publish-to-rubygems)\n\n## Usage\n\nAdd to your `Gemfile`:\n\n```ruby\ngem 'lnd-client', '~\u003e 0.0.9'\n```\n\n```ruby\nrequire 'lnd-client'\n\nputs LNDClient.version # =\u003e 0.0.9\n\nclient = LNDClient.new(\n  'lndconnect://127.0.0.1:10009?cert=MIICJz...JBEERQ\u0026macaroon=AgEDbG...45ukJ4'\n)\n\nclient.lightning.wallet_balance.total_balance # =\u003e 101527\n\nclient.lightning.wallet_balance.to_h # =\u003e\n# { total_balance: 101_527,\n#   confirmed_balance: 101_527,\n#   unconfirmed_balance: 0,\n#   locked_balance: 0,\n#   reserved_balance_anchor_chan: 20_000,\n#   account_balance: {\n#     'default' =\u003e {\n#       confirmed_balance: 101_527,\n#       unconfirmed_balance: 0 } } }\n\nclient.lightning.get_node_info(\n  pub_key: '02d3c80335a8ccb2ed364c06875f32240f36f7edb37d80f8dbe321b4c364b6e997'\n).node.alias # =\u003e 'icebaker/old-stone'\n\nclient.lightning.subscribe_channel_graph do |data|\n  puts data.inspect # =\u003e { ... }\nend\n\nclient.router.subscribe_htlc_events do |data|\n  puts data.inspect # =\u003e { ... }\nend\n```\n\nCheck the [full documentation](https://icebaker.github.io/lnd-client).\n\n## Available Supported Services\n\n- [autopilot](https://icebaker.github.io/lnd-client/#/README?id=autopilot)\n- [chain_kit](https://icebaker.github.io/lnd-client/#/README?id=chain_kit)\n- [chain_notifier](https://icebaker.github.io/lnd-client/#/README?id=chain_notifier)\n- [dev](https://icebaker.github.io/lnd-client/#/README?id=dev)\n- [invoices](https://icebaker.github.io/lnd-client/#/README?id=invoices)\n- [lightning](https://icebaker.github.io/lnd-client/#/README?id=lightning)\n- [neutrino_kit](https://icebaker.github.io/lnd-client/#/README?id=neutrino_kit)\n- [peers](https://icebaker.github.io/lnd-client/#/README?id=peers)\n- [router](https://icebaker.github.io/lnd-client/#/README?id=router)\n- [signer](https://icebaker.github.io/lnd-client/#/README?id=signer)\n- [state](https://icebaker.github.io/lnd-client/#/README?id=state)\n- [versioner](https://icebaker.github.io/lnd-client/#/README?id=versioner)\n- [wallet_kit](https://icebaker.github.io/lnd-client/#/README?id=wallet_kit)\n- [wallet_unlocker](https://icebaker.github.io/lnd-client/#/README?id=wallet_unlocker)\n- [watchtower](https://icebaker.github.io/lnd-client/#/README?id=watchtower)\n- [watchtower_client](https://icebaker.github.io/lnd-client/#/README?id=watchtower_client)\n\n## Development\n\nCopy the `.env.example` file to `.env` and provide the required data.\n\n```ruby\n# Gemfile\ngem 'lnd-client', path: '/home/user/lnd-client'\n\n# demo.rb\nrequire 'lnd-client'\n\nputs LNDClient.version\n```\n\n```sh\nbundle\nrubocop -A\n```\n\n### Upgrading gRPC Proto Files\n\n```sh\nbundle exec rake grpc:upgrade\n```\n\n### Generating Documentation\n\n```sh\nbundle exec rake grpc:docs\n\nnpm i docsify-cli -g\n\ndocsify serve ./docs\n```\n\n### Publish to RubyGems\n\n```sh\ngem build lnd-client.gemspec\n\ngem signin\n\ngem push lnd-client-0.0.9.gem\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficebaker%2Flnd-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ficebaker%2Flnd-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficebaker%2Flnd-client/lists"}