{"id":21829728,"url":"https://github.com/0xtlt/lnbits_rust","last_synced_at":"2026-03-17T17:04:33.773Z","repository":{"id":65188702,"uuid":"586468831","full_name":"0xtlt/lnbits_rust","owner":"0xtlt","description":"lnbits rust client","archived":false,"fork":false,"pushed_at":"2024-07-25T20:24:10.000Z","size":22,"stargazers_count":5,"open_issues_count":1,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-26T17:53:04.820Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/0xtlt.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-08T08:49:55.000Z","updated_at":"2025-01-31T08:48:12.000Z","dependencies_parsed_at":"2024-11-27T18:40:46.215Z","dependency_job_id":null,"html_url":"https://github.com/0xtlt/lnbits_rust","commit_stats":{"total_commits":15,"total_committers":3,"mean_commits":5.0,"dds":0.1333333333333333,"last_synced_commit":"14935ece104cad5ab6d0813c44cb2fa5bd4b7581"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/0xtlt/lnbits_rust","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xtlt%2Flnbits_rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xtlt%2Flnbits_rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xtlt%2Flnbits_rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xtlt%2Flnbits_rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xtlt","download_url":"https://codeload.github.com/0xtlt/lnbits_rust/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xtlt%2Flnbits_rust/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30627697,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T14:16:03.965Z","status":"ssl_error","status_checked_at":"2026-03-17T14:16:03.380Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-27T18:28:57.254Z","updated_at":"2026-03-17T17:04:33.740Z","avatar_url":"https://github.com/0xtlt.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lnbits_rust\n\n[![crates.io](https://img.shields.io/crates/v/lnbits_rust.svg)](https://crates.io/crates/lnbits_rust)\n[![Documentation](https://docs.rs/lnbits_rust/badge.svg)](https://docs.rs/lnbits_rust)\n[![MIT/Apache-2 licensed](https://img.shields.io/crates/l/lnbits_rust.svg)](./LICENSE.txt)\n[![CI](https://github.com/0xtlt/lnbits_rust/actions/workflows/checks.yml/badge.svg)](https://github.com/0xtlt/lnbits_rust/actions/workflows/checks.yml)\n[![Issues](https://img.shields.io/github/issues/0xtlt/lnbits_rust)](https://img.shields.io/github/issues/0xtlt/lnbits_rust)\n\nAn ergonomic, [LNBits](https://lnbits.com/) API Client for Rust.\n\n- [Changelog](CHANGELOG.md)\n\n## Example\n\n```toml\n[dependencies]\ntokio = { version = \"1.0\", features = [\"full\"] }\nlnbits_rust = \"0.1\"\n```\n\nAnd then the code:\n\n```rust,norun\nuse lnbits_rust::{api::invoice::CreateInvoiceParams, LNBitsClient};\n\n#[tokio::main]\nasync fn main() {\n    let client = LNBitsClient::new(\n        \"wallet id\",\n        \"admin_key\",\n        \"invoice_read_key\",\n        \"http://lnbits_url\",\n        None,\n    )\n    .unwrap();\n\n    // OR with tor\n\n    let client = LNBitsClient::new(\n        \"wallet id\",\n        \"admin_key\",\n        \"invoice_read_key\",\n        \"http://lnbits_url.onion\",\n        Some(\"socks5h://127.0.0.1:9050\"),\n    )\n    .unwrap();\n\n    let wallet_details = client.get_wallet_details().await.unwrap();\n\n    println!(\"wallet_details: {:?}\", wallet_details);\n\n    let invoice = client\n        .create_invoice(\u0026CreateInvoiceParams {\n            amount: 1,\n            unit: \"sat\".to_string(),\n            memo: None,\n            expiry: Some(10000),\n            webhook: None,\n            internal: None,\n        })\n        .await\n        .unwrap();\n\n    println!(\"invoice: {:?}\", i);\n\n    println!(\n        \"decoded invoice: {:?}\",\n        client.decode_invoice(\u0026i.payment_request).await.unwrap()\n    );\n\n    while !client.is_invoice_paid(\u0026i.payment_hash).await.unwrap() {\n        println!(\"Waiting for payment\");\n        tokio::time::sleep(tokio::time::Duration::from_secs(1)).await;\n    }\n\n    println!(\"Payment received\");\n}\n\n```\n\n## Key features\n\n- [x] Create invoices\n- [x] Decode invoices\n- [x] Pay invoices\n- [x] Get wallet details\n- [x] Tor support\n\n## License\n\nLicensed under MIT license ([LICENSE-MIT](LICENSE-MIT) or \u003chttp://opensource.org/licenses/MIT\u003e)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xtlt%2Flnbits_rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xtlt%2Flnbits_rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xtlt%2Flnbits_rust/lists"}