A rust implementation of LNURL. Supports plaintext, TLS and Onion servers. Blocking or async. WASM enabled.
```rustc let lnaddr = LightningAddress::fromstr("ben@zaps.benthecarman.com").unwrap(); let asyncclient = Builder::default().buildasync().unwrap();
let res = asyncclient.makerequest(url).await.unwrap();
if let LnUrlPayResponse(pay) = res { let msats = 1000000; let invoice = asyncclient.getinvoice(&pay, msats, None).await.unwrap();
assert_eq!(invoice.invoice().amount_milli_satoshis(), Some(msats));
} else { panic!("Wrong response type"); } ```