Zaps class

Zaps

Constructors

Zaps({required Requests requests, required Nwc nwc, required Lnurl lnurl})
.

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

createZapRequest({required int amountSats, required EventSigner signer, required String pubKey, String? eventId, String? comment, required Iterable<String> relays, String? pollOption}) Future<ZapRequest>
creates a zap request
fecthInvoice({required String lud16Link, required int amountSats, ZapRequest? zapRequest, String? comment}) Future<InvoiceResponse?>
creates an invoice with an optional zap request encoded if signer, pubKey & relays are non empty
fetchZappedReceipts({required String pubKey, String? eventId, Duration? timeout}) Stream<ZapReceipt>
fetch all zap receipts matching given pubKey and optional event id, in sats
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
subscribeToZapReceipts({required String pubKey, String? eventId}) NdkResponse
fetch all zap receipts matching given pubKey and optional event id, in sats
toString() String
A string representation of this object.
inherited
zap({required NwcConnection nwcConnection, required String lnurl, required int amountSats, bool fetchZapReceipt = false, EventSigner? signer, Iterable<String>? relays, String? pubKey, String? comment, String? eventId}) Future<ZapResponse>
zap or pay some lnurl, for zap to be created it is necessary:

Operators

operator ==(Object other) bool
The equality operator.
inherited