{"id":16971694,"url":"https://github.com/juancarlospaco/bitcoin-lightning","last_synced_at":"2025-03-17T08:37:56.604Z","repository":{"id":57861210,"uuid":"528565768","full_name":"juancarlospaco/bitcoin-lightning","owner":"juancarlospaco","description":"Open-source zero-fee no-download offline-capable anonymous instant micropayments platform with plugins Bitcoin Lightning ⚡️","archived":false,"fork":false,"pushed_at":"2024-07-02T14:35:17.000Z","size":401,"stargazers_count":16,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"nim","last_synced_at":"2025-02-27T21:47:53.429Z","etag":null,"topics":["bitcoin","bitcoin-lightning-network","cash","cryptocurrency","decentralized","easy-to-use","economy","finance","get-rich-slowly","lightning-network","nim","nim-lang","payment-integration","sustainability","web3"],"latest_commit_sha":null,"homepage":"","language":"Nim","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/juancarlospaco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"custom":["https://gist.github.com/juancarlospaco/37da34ed13a609663f55f4466c4dbc3e"]}},"created_at":"2022-08-24T19:26:51.000Z","updated_at":"2024-07-02T14:35:21.000Z","dependencies_parsed_at":"2023-01-31T23:31:16.653Z","dependency_job_id":"cfd6662f-5248-42f4-b326-c2d571590aa4","html_url":"https://github.com/juancarlospaco/bitcoin-lightning","commit_stats":{"total_commits":77,"total_committers":20,"mean_commits":3.85,"dds":"0.24675324675324672","last_synced_commit":"99363a058b65c9a6151ca219b61fae514e3d40d9"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juancarlospaco%2Fbitcoin-lightning","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juancarlospaco%2Fbitcoin-lightning/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juancarlospaco%2Fbitcoin-lightning/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juancarlospaco%2Fbitcoin-lightning/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juancarlospaco","download_url":"https://codeload.github.com/juancarlospaco/bitcoin-lightning/tar.gz/refs/heads/nim","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243853617,"owners_count":20358451,"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":["bitcoin","bitcoin-lightning-network","cash","cryptocurrency","decentralized","easy-to-use","economy","finance","get-rich-slowly","lightning-network","nim","nim-lang","payment-integration","sustainability","web3"],"created_at":"2024-10-14T00:53:53.419Z","updated_at":"2025-03-17T08:37:56.258Z","avatar_url":"https://github.com/juancarlospaco.png","language":"Nim","funding_links":["https://gist.github.com/juancarlospaco/37da34ed13a609663f55f4466c4dbc3e"],"categories":[],"sub_categories":[],"readme":"# Bitcoin Lightning client\n\n- Open-source zero-fee no-download offline-capable anonymous instant micropayments platform with plugins.\n\n![](https://camo.githubusercontent.com/073fa39391eedc7e9ecfaa28086d04c053f53b5f3661aecbb33a7a97cf2b7b5c/68747470733a2f2f692e696d6775722e636f6d2f4548764b364c712e706e67 \"Add micropayments to any software with a one-liner\")\n\n![](https://raw.githubusercontent.com/juancarlospaco/bitcoin-lightning/nim/screenshot.png \"Send, receive, withdraw and more\")\n\n![](https://raw.githubusercontent.com/juancarlospaco/bitcoin-lightning/nim/plugins.jpg \"Tips, Donos, Paywalls, Bots, Tickets, Livestreams, Offline-Shop via plugins\")\n\n![](https://img.shields.io/github/languages/top/juancarlospaco/bitcoin-lightning?style=for-the-badge)\n![](https://img.shields.io/github/stars/juancarlospaco/bitcoin-lightning?style=for-the-badge)\n![](https://img.shields.io/github/languages/code-size/juancarlospaco/bitcoin-lightning?style=for-the-badge)\n![](https://img.shields.io/github/issues-raw/juancarlospaco/bitcoin-lightning?style=for-the-badge \"Bugs\")\n![](https://img.shields.io/github/issues-pr-raw/juancarlospaco/bitcoin-lightning?style=for-the-badge \"PRs\")\n![](https://img.shields.io/github/last-commit/juancarlospaco/bitcoin-lightning?style=for-the-badge \"Commits\")\n\n\n# Offline\n\n- DIY cardboard offline Bitcoin ATMs, Arduino/RaspberryPi.\n\n![](https://camo.githubusercontent.com/2103250a9d68b0afe02ddd6f455666355a3fda21fd90862645ec043efea92055/68747470733a2f2f692e696d6775722e636f6d2f476936626e334c2e6a7067 \"DIY cardboard offline Bitcoin ATMs\")\n\nhttps://user-images.githubusercontent.com/1653275/136722218-10bc7a5a-7194-4a38-8a54-86825bab704e.mp4\n\n- [International payments over Radio](https://twitter.com/nvk/status/1101548727460741120).\n\n![](https://raw.githubusercontent.com/juancarlospaco/bitcoin-lightning/nim/ln2radio.jpg)\n\n\n# Shop\n\n- Rural or mobile shops just need 1 QR, works even without internet (invoice via SMS) or electricity (QR or URL).\n\nhttps://user-images.githubusercontent.com/1653275/166477530-63653087-dd5e-4843-ab64-79cfcb339fcf.mp4\n\n\n# Example\n\n```nim\nimport bitcoinlightning\nlet client: BitcoinLightning = newBitcoinLightning(apiKey = \"YOUR_API_KEY_HERE\")\necho client.getWallet()                        # Get your wallet.\necho client.getInvoice(amount = 666.Positive)  # Receive (Sell).\necho client.payInvoice(\"YOUR_INVOICE_HERE\")    # Send (Pay).\n```\n\n\n# ELI5\n\n- **Receive money** with 1 new Bitcoin Lightning incoming invoice, thats just 1 `string` (or Link, or QR).\n- **Send money** with 1 new Bitcoin Lightning outgoing invoice, thats just 1 `string` (or Link, or QR).\n\n\n# Design\n\n- It does not use anything from Nim standard library, very future-proof.\n- HTTPS JSON REST API, KISS. 1 file, \u003c100 lines, zero dependencies, any target.\n- Simple minimal API, all functions with 2 arguments max.\n\n\u003cdetails\u003e\n  \u003csummary\u003e Disclaimer \u003c/summary\u003e\n  Bitcoin Lightning is decentralized, so theres multiple services,\n  but this way was the simplest and recommended approach as of 2022,\n  if you just want to build something that can be monetized quickly.\n  I investigated to use lntxbot but it has no HTTP API.\n  I investigated to use Bitrefill but it has no HTTP API.\n  I investigated to use Binance but it has no Lightning API.\n  Anyway the idea of the Lightning network is that the API server does not really matter,\n  because you can just send to any other Lightning wallet anywhere.\n  In the future, if better services appear, then the library can be changed.\n\u003c/details\u003e\n\n\n# FAQ\n\n- I try to send a million USD/EUR and it fails?\n\nIt is a **lightweight API for MICROpayments**, use Bitcoin onchain for big amounts.\n\n- I need to generate QR?\n\nhttps://github.com/ThomasTJdev/nim_qr#examples\n\n- I need more features, like other coins and more?\n\nhttps://github.com/juancarlospaco/binance#binance\n\n- Is this a web app?\n\nHTTPS JSON REST API client.\n\n\n# See also\n\n- https://github.com/juancarlospaco/binance#binance\n- https://github.com/juancarlospaco/tradingview#tradingview\n- https://github.com/juancarlospaco/cloudbet#cloudbet\n\n\n# 💰➡️🍕\n\n\u003cdetails\u003e\n\u003csummary title=\"Send Bitcoin\"\u003e\u003ckbd\u003e Bitcoin BTC \u003c/kbd\u003e\u003c/summary\u003e\n\n**BEP20 Binance Smart Chain Network BSC**\n```\n0xb78c4cf63274bb22f83481986157d234105ac17e\n```\n**BTC Bitcoin Network**\n```\n1Pnf45MgGgY32X4KDNJbutnpx96E4FxqVi\n```\n**Lightning Network**\n```\njuancarlospaco@bitrefill.me\n```\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary title=\"Send Ethereum and DAI\"\u003e\u003ckbd\u003e Ethereum ETH \u003c/kbd\u003e \u003ckbd\u003e Dai DAI \u003c/kbd\u003e \u003ckbd\u003e Uniswap UNI \u003c/kbd\u003e \u003ckbd\u003e Axie Infinity AXS \u003c/kbd\u003e \u003ckbd\u003e Smooth Love Potion SLP \u003c/kbd\u003e \u003ckbd\u003e Uniswap UNI \u003c/kbd\u003e \u003ckbd\u003e USDC \u003c/kbd\u003e \u003c/summary\u003e\n\n**BEP20 Binance Smart Chain Network BSC**\n```\n0xb78c4cf63274bb22f83481986157d234105ac17e\n```\n**ERC20 Ethereum Network**\n```\n0xb78c4cf63274bb22f83481986157d234105ac17e\n```\n\u003c/details\u003e\n\u003cdetails\u003e\n\u003csummary title=\"Send Tether\"\u003e\u003ckbd\u003e Tether USDT \u003c/kbd\u003e\u003c/summary\u003e\n\n**BEP20 Binance Smart Chain Network BSC**\n```\n0xb78c4cf63274bb22f83481986157d234105ac17e\n```\n**ERC20 Ethereum Network**\n```\n0xb78c4cf63274bb22f83481986157d234105ac17e\n```\n**TRC20 Tron Network**\n```\nTWGft53WgWvH2mnqR8ZUXq1GD8M4gZ4Yfu\n```\n\u003c/details\u003e\n\u003cdetails\u003e\n\u003csummary title=\"Send Solana\"\u003e\u003ckbd\u003e Solana SOL \u003c/kbd\u003e\u003c/summary\u003e\n\n**BEP20 Binance Smart Chain Network BSC**\n```\n0xb78c4cf63274bb22f83481986157d234105ac17e\n```\n**SOL Solana Network**\n```\nFKaPSd8kTUpH7Q76d77toy1jjPGpZSxR4xbhQHyCMSGq\n```\n\u003c/details\u003e\n\u003cdetails\u003e\n\u003csummary title=\"Send Cardano\"\u003e\u003ckbd\u003e Cardano ADA \u003c/kbd\u003e\u003c/summary\u003e\n\n**BEP20 Binance Smart Chain Network BSC**\n```\n0xb78c4cf63274bb22f83481986157d234105ac17e\n```\n**ADA Cardano Network**\n```\nDdzFFzCqrht9Y1r4Yx7ouqG9yJNWeXFt69xavLdaeXdu4cQi2yXgNWagzh52o9k9YRh3ussHnBnDrg7v7W2hSXWXfBhbo2ooUKRFMieM\n```\n\u003c/details\u003e\n\u003cdetails\u003e\n\u003csummary title=\"Send Sandbox\"\u003e\u003ckbd\u003e Sandbox SAND \u003c/kbd\u003e \u003ckbd\u003e Decentraland MANA \u003c/kbd\u003e\u003c/summary\u003e\n\n**ERC20 Ethereum Network**\n```\n0xb78c4cf63274bb22f83481986157d234105ac17e\n```\n\u003c/details\u003e\n\u003cdetails\u003e\n\u003csummary title=\"Send Algorand\"\u003e\u003ckbd\u003e Algorand ALGO \u003c/kbd\u003e\u003c/summary\u003e\n\n**ALGO Algorand Network**\n```\nWM54DHVZQIQDVTHMPOH6FEZ4U2AU3OBPGAFTHSCYWMFE7ETKCUUOYAW24Q\n```\n\u003c/details\u003e\n\u003cdetails\u003e\n\u003csummary title=\"Send Polkadot\"\u003e\u003ckbd\u003e Polkadot DOT \u003c/kbd\u003e\u003c/summary\u003e\n\n**DOT Network**\n```\n13GdxHQbQA1K6i7Ctf781nQkhQhoVhGgUnrjn9EvcJnYWCEd\n```\n**BEP20 Binance Smart Chain Network BSC**\n```\n0xb78c4cf63274bb22f83481986157d234105ac17e\n```\n\u003c/details\u003e\n\u003cdetails\u003e\n\u003csummary title=\"Send via Binance Pay\"\u003e Binance \u003c/summary\u003e\n\n[https://pay.binance.com/en/checkout/e92e536210fd4f62b426ea7ee65b49c3](https://pay.binance.com/en/checkout/e92e536210fd4f62b426ea7ee65b49c3 \"Send via Binance Pay\")\n\u003c/details\u003e\n\n\n# Stars\n\n![](https://starchart.cc/juancarlospaco/bitcoin-lightning.svg)\n:star: [@luisacosta828](https://github.com/luisacosta828 '2022-08-26')\n:star: [@juancarlospaco](https://github.com/juancarlospaco '2022-08-26')\n:star: [@overtube](https://github.com/overtube '2022-08-27')\n:star: [@adam-acosta](https://github.com/adam-acosta '2022-09-01')\t\n:star: [@kirbylife](https://github.com/kirbylife '2022-09-01')\t\n:star: [@22388o](https://github.com/22388o '2022-09-09')\t\n:star: [@Miqueas](https://github.com/Miqueas '2022-09-19')\t\n:star: [@codehangen](https://github.com/codehangen '2022-09-27')\t\n:star: [@frankmoshe](https://github.com/frankmoshe '2022-11-04')\t\n:star: [@hugosenari](https://github.com/hugosenari '2022-12-02')\t\n:star: [@lf-araujo](https://github.com/lf-araujo '2023-01-01')\t\n:star: [@eantho](https://github.com/eantho '2023-02-26')\t\n:star: [@Bulli77](https://github.com/Bulli77 '2023-03-24')\t\n:star: [@degaur](https://github.com/degaur '2023-07-19')\t\n:star: [@catsuns](https://github.com/catsuns '2023-07-22')\t\n:star: [@Shamulwa](https://github.com/Shamulwa '2023-09-21')\t\n:star: [@xioren](https://github.com/xioren '2023-10-09')\t\n:star: [@osascruz](https://github.com/osascruz '2023-10-18')\t\n:star: [@nichdemos](https://github.com/nichdemos '2023-12-31')\t\n:star: [@lucasnuic](https://github.com/lucasnuic '2024-05-03')\t\n:star: [@ranjian0](https://github.com/ranjian0 '2024-07-02')\t\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuancarlospaco%2Fbitcoin-lightning","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuancarlospaco%2Fbitcoin-lightning","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuancarlospaco%2Fbitcoin-lightning/lists"}