{"id":27054796,"url":"https://github.com/bitkarrot/lntools","last_synced_at":"2025-07-04T23:05:06.787Z","repository":{"id":53751047,"uuid":"327776151","full_name":"bitkarrot/lntools","owner":"bitkarrot","description":"tools for accessing LNURLw in Lnbits","archived":false,"fork":false,"pushed_at":"2024-08-14T06:38:20.000Z","size":245,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T09:17:02.518Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/bitkarrot.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":"2021-01-08T02:19:08.000Z","updated_at":"2024-08-14T06:38:18.000Z","dependencies_parsed_at":"2024-08-16T23:34:32.967Z","dependency_job_id":null,"html_url":"https://github.com/bitkarrot/lntools","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bitkarrot/lntools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitkarrot%2Flntools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitkarrot%2Flntools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitkarrot%2Flntools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitkarrot%2Flntools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitkarrot","download_url":"https://codeload.github.com/bitkarrot/lntools/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitkarrot%2Flntools/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263632055,"owners_count":23491529,"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":[],"created_at":"2025-04-05T09:17:06.866Z","updated_at":"2025-07-04T23:05:06.739Z","avatar_url":"https://github.com/bitkarrot.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lntools\n\n## Purpose\nTo generate *Unique* LNURLw withdraw links in bulk from LNbits.com using a csv spreadsheet.\nThe Current LNURLw extension does not allow for creation of unique links in bulk, so this script addresses this feature.\n\nThe spreadsheet would include the following:\n\n- **Title** : usually the name for the withdraw link, \n- **MaxSat** : the number of satoshis that can be withdrawn from the link\n- **Uses** : The maximum number of times the link can be used. \n\nThe output would be a spreadsheet containing the Titles, *Unique* LNURLS and *Unique* Sharelinks for each withdraw link. \nAll of this output information is also visible in the lnbits admin panel. \n\n## Installation:\n```\n$ git clone https://github.com/bitkarrot/lntools.git\n$ python3 -m venv env\n$ source env/bin/activate\n$ pip install -r requirements.txt\n```\n\n## How to Use\n\nFor example input file format, see the laisee.csv sample. \nhttps://github.com/bitkarrot/lntools/blob/main/laisee.csv\n\nThe sample output file is in the lout.csv file. \nhttps://github.com/bitkarrot/lntools/blob/main/lout.csv\n\nIn the Output file you should get a list of share links which enable printing of QR codes\nExample: https://lnbits.com/withdraw/ig6JXnhLKZDaeC3VKityLP\n\nOr, you can also view all of the links auto generated with their names created on the LNURLw Admin panel:\n\u003cimg src=\"https://github.com/bitkarrot/lntools/blob/main/lnurlw_admin_panel.png\"/\u003e\n\nFor the X-API-Key, it is the Admin key in your LNBits wallet. \n\nTo Find the Admin Key, look for it in the API panel: \n\u003cimg src=\"https://github.com/bitkarrot/lntools/blob/main/wallet_panel.png\"/\u003e\n\nTo Run the script: \n\n```\n$ python3 uniq_lnurls.py \n\nHi - This is the Unique LNURLw generator.\nBe sure no extra spaces are entered below.\n\nPlease Enter your x-api-key: 08f44a___________b30a21\nEnter your .CSV file name: laisee.csv\nEnter your Output file name: out.csv\nOkay, Processing.........\nColumn names are title, maxsat, uses\n\t Title: John Smith,  Max Satoshis: 10000, Number Uses:  1\n\t ==== creating link ====\n\t Title: Erica Meyers,  Max Satoshis: 15000, Number Uses:  1\n\t ==== creating link ====\n\t Title: Leo W,  Max Satoshis: 20000, Number Uses:  1\n\t ==== creating link ====\nProcessed 4 lines.\n \u003e\u003e\u003e\u003e\u003e\u003e\u003e\u003e\u003e Finished writing out to out.csv\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitkarrot%2Flntools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitkarrot%2Flntools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitkarrot%2Flntools/lists"}