{"id":18486843,"url":"https://github.com/BlueWallet/LndHub","last_synced_at":"2025-04-08T19:33:56.200Z","repository":{"id":37567643,"uuid":"160101829","full_name":"BlueWallet/LndHub","owner":"BlueWallet","description":"Wrapper for Lightning Network Daemon. It provides separate accounts for end-users","archived":false,"fork":false,"pushed_at":"2025-02-15T19:55:31.000Z","size":1201,"stargazers_count":867,"open_issues_count":69,"forks_count":244,"subscribers_count":60,"default_branch":"master","last_synced_at":"2025-04-06T14:04:34.546Z","etag":null,"topics":["api","bitcoin","lightning","lightning-network","microservice"],"latest_commit_sha":null,"homepage":"http://LndHub.io","language":"JavaScript","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/BlueWallet.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":"2018-12-02T22:17:33.000Z","updated_at":"2025-04-05T15:04:10.000Z","dependencies_parsed_at":"2023-02-08T01:15:48.845Z","dependency_job_id":"226a8168-c7f9-4fbd-8bc1-ad32f0a8034e","html_url":"https://github.com/BlueWallet/LndHub","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlueWallet%2FLndHub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlueWallet%2FLndHub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlueWallet%2FLndHub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlueWallet%2FLndHub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BlueWallet","download_url":"https://codeload.github.com/BlueWallet/LndHub/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247912807,"owners_count":21017049,"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","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":["api","bitcoin","lightning","lightning-network","microservice"],"created_at":"2024-11-06T12:49:52.833Z","updated_at":"2025-04-08T19:33:56.178Z","avatar_url":"https://github.com/BlueWallet.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"LndHub\n======\n\nWrapper for Lightning Network Daemon (lnd). It provides separate accounts with minimum trust for end users.\n\nINSTALLATION\n------------\n\nYou can use those guides or follow instructions below:\n\n* https://github.com/dangeross/guides/blob/master/raspibolt/raspibolt_6B_lndhub.md\n* https://medium.com/@jpthor/running-lndhub-on-mac-osx-5be6671b2e0c\n\n```\ngit clone git@github.com:BlueWallet/LndHub.git\ncd LndHub\nnpm i\n```\n\nInstall `bitcoind`, `lnd`, and `redis`. Edit LndHub's `config.js` to set it up correctly.\nCopy the files `admin.macaroon` (for Bitcoin mainnet, usually stored in `~/.lnd/data/chain/bitcoin/mainnet/admin.macaroon`)\nand `tls.cert` (usually stored in `~/.lnd/tls.cert`) into the root folder of LndHub.\n\nLndHub expects LND's wallet to be unlocked, if not — it will attempt to unlock it with the password stored in `config.lnd.password`.\nDon't forget to configure disk-persistence for `redis` (e.g., you may want to set `appendonly` to  `yes` in `redis.conf` (see\nhttp://redis.io/topics/persistence for more information).\n\nIf you have no `bitcoind` instance, for example if you use neutrino, or you have no bitcoind wallet, \nfor example if you use LND for wallet managment, you can remove the bitcoind settings from `config.js`.\nPlease note that this feature is limited to Bitcoin, so you can't use it if you use any other cryptocurrency with LND (e.g., Litecoin).\n\n### Deploy to Heroku\n\nAdd config vars :\n* `CONFIG` : json serialized config object\n* `MACAROON`: hex-encoded `admin.macaroon`\n* `TLSCERT`: hex-encoded `tls.cert`\n\n### Run in docker\n\nLndHub is available on Docker Hub as [`bluewalletorganization/lndhub`](https://hub.docker.com/r/bluewalletorganization/lndhub).\nPlease note that this requires a separate instance of redis and LND and optionally, bitcoind.\nYou can also view Umbrel's implementation using docker-compose [here](https://github.com/getumbrel/umbrel/blob/280c87f0f323666b1b0552aeb24f60df94d1e43c/apps/lndhub/docker-compose.yml).\n\n### Reference client implementation\n\nCan be used in ReactNative or Nodejs environment\n\n* https://github.com/BlueWallet/BlueWallet/blob/master/class/wallets/lightning-custodian-wallet.js\n\n\n\n### Tests\n\nAcceptance tests are in https://github.com/BlueWallet/BlueWallet/blob/master/tests/integration/lightning-custodian-wallet.test.js\n\n![image](https://user-images.githubusercontent.com/1913337/52418916-f30beb00-2ae6-11e9-9d63-17189dc1ae8c.png)\n\n\n\n## Responsible disclosure\n\nFound critical bugs/vulnerabilities? Please email them to bluewallet@bluewallet.io\nThanks!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBlueWallet%2FLndHub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FBlueWallet%2FLndHub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBlueWallet%2FLndHub/lists"}