{"id":16563208,"url":"https://github.com/benthecarman/lnurl-rs","last_synced_at":"2025-04-05T13:07:31.341Z","repository":{"id":65252329,"uuid":"588783907","full_name":"benthecarman/lnurl-rs","owner":"benthecarman","description":"A rust implementation of LNURL","archived":false,"fork":false,"pushed_at":"2024-11-05T16:25:58.000Z","size":98,"stargazers_count":31,"open_issues_count":2,"forks_count":12,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T06:02:41.539Z","etag":null,"topics":["lnurl","lnurl-pay","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/benthecarman.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-14T01:53:01.000Z","updated_at":"2024-11-07T05:09:35.000Z","dependencies_parsed_at":"2023-09-24T07:13:59.612Z","dependency_job_id":"4ce97f38-104a-4b49-b12d-f65b3049e1e0","html_url":"https://github.com/benthecarman/lnurl-rs","commit_stats":{"total_commits":38,"total_committers":2,"mean_commits":19.0,"dds":0.1842105263157895,"last_synced_commit":"393050590ea573b68dd47fb6697b927d7bd01013"},"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benthecarman%2Flnurl-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benthecarman%2Flnurl-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benthecarman%2Flnurl-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benthecarman%2Flnurl-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benthecarman","download_url":"https://codeload.github.com/benthecarman/lnurl-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247339158,"owners_count":20923014,"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":["lnurl","lnurl-pay","rust"],"created_at":"2024-10-11T20:39:07.404Z","updated_at":"2025-04-05T13:07:31.312Z","avatar_url":"https://github.com/benthecarman.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lnurl-rs\n\n[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/benthecarman/lnurl-rs/blob/master/LICENSE)\n[![lnurl-rs on crates.io](https://img.shields.io/crates/v/lnurl-rs.svg)](https://crates.io/crates/lnurl-rs)\n[![lnurl-s on docs.rs](https://docs.rs/lnurl-rs/badge.svg)](https://docs.rs/lnurl-rs)\n\nA rust implementation of [LNURL](https://github.com/lnurl/luds). Supports plaintext, TLS and Onion servers. Blocking or\nasync. WASM enabled.\n\n## Supported\n\n- lnurl-auth\n- lnurl-pay\n- lightning-address\n- lnurl-withdraw\n- lnurl-channel\n\n## Examples\n\n### Lnurl Pay\n\n```rustc\nlet ln_addr = LightningAddress::from_str(\"ben@zaps.benthecarman.com\").unwrap();\nlet async_client = Builder::default().build_async().unwrap();\n\nlet res = async_client.make_request(url).await.unwrap();\n\nif let LnUrlPayResponse(pay) = res {\n    let msats = 1_000_000;\n    let pay_result = async_client.get_invoice(\u0026pay, msats, None, None).await.unwrap();\n\n    let invoice = Bolt11Invoice::from_str(\u0026pay_result.invoice()).unwrap();\n\n    assert_eq!(invoice.amount_milli_satoshis(), Some(msats));\n} else {\n    panic!(\"Wrong response type\");\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenthecarman%2Flnurl-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenthecarman%2Flnurl-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenthecarman%2Flnurl-rs/lists"}