Skip to main content

Module protocol

Module protocol 

Source

Structs§

CloseTrace
PongTrace
Trace

Enums§

Input
Output

Constants§

JSON_PROTOCOL_VERSION

Functions§

is_bolt12_offer
Returns true if the string looks like a BOLT12 offer (lno1…), optionally with a ?amount=<sats> suffix. Case-insensitive.
parse_bolt12_offer_parts
Split a BOLT12 offer string into the raw offer and an optional amount-sats. Accepts lno1... or lno1...?amount=1000. Case-insensitive prefix detection.