pub fn parse_input(input: String) -> Result<ParsedInput, Error>Expand description
Synchronously classify the input. No HTTP, no I/O.
Recognises BOLT11 invoices, node IDs, LNURL bech32 strings, and
Lightning Addresses. Strips lightning: / LIGHTNING: prefixes
automatically. LNURL inputs are decoded to their underlying URL
but not fetched — the caller chooses whether to resolve
further (via resolve_input) or to surface the URL to the user
as-is.
Use this for offline operations like clipboard validation or
invoice sanity checks. Use resolve_input for the QR-scan flow
where you want the resolved pay/withdraw data in one call.