Using LNURL
Interacting with a LNURL endpoint consists of two steps:
- Parse the LNURL string using
parse(lnurl_url).await
. This returns aResult<InputType>
. The specificInputType
you receive will tell you what kind of endpoint this is, as well as give you the relevant endpoint parameters. - Call the corresponding service method. For example, for LNURL-pay, that is
BreezServices::lnurl_pay()
.