Skip to main content

parse_input

Function parse_input 

Source
pub fn parse_input(input: String) -> Result<InputType, Error>
Expand description

Parse a string and identify whether it’s a BOLT11 invoice or a node ID.

Strips lightning: / LIGHTNING: prefixes automatically. Works offline — no node connection needed.