Skip to main content

Crate fedimint_lnurl

Crate fedimint_lnurl 

Source

Structs§

InvoiceResponse
Response when requesting an invoice from LNURL-pay callback
PayResponse
LNURL-pay response (LUD-06)
VerifyResponse
LUD-21 verify response

Enums§

LnurlResponse
Generic LNURL response wrapper that handles the error case. Successful responses deserialize directly into Ok(T), while error responses with {"status": "ERROR", "reason": "..."} fall back to Error.

Functions§

encode_lnurl
Encode a URL as a bech32 LNURL string
get_invoice
Fetch an invoice from an LNURL-pay callback
parse_address
Parse a lightning address (user@domain) to its LNURL-pay endpoint URL
parse_lnurl
Decode a bech32-encoded LNURL string to a URL string
pay_request_tag
request
Fetch and parse an LNURL-pay response
verify_invoice
Verify a payment using LUD-21