Lnurl class
LN URL utilities
Constructors
- Lnurl({required LnurlTransport transport})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
fetchInvoice(
{required LnurlResponse lnurlResponse, required int amountSats, ZapRequest? zapRequest, String? comment}) → Future< InvoiceResponse?> - fetch invoice from callback
-
getLnurlResponse(
String link) → Future< LnurlResponse?> - fetch LNURL response from given link
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
getAmountFromBolt11(
String bolt11) → int - extract amount from bolt11 in sats
-
getLud16LinkFromLud16(
String lud16) → String? - transform a lud16 of format name@domain.com to https://domain.com/.well-known/lnurlp/name