Incoming Payment Handler
class IncomingPaymentHandler(nodeParams: NodeParams, walletParams: WalletParams, db: IncomingPaymentsDb)
Content copied to clipboard
Types
Functions
check Payments Timeout
Link copied to clipboard
create Invoice
Link copied to clipboard
suspend fun createInvoice(paymentPreimage: ByteVector32, amount: MilliSatoshi?, description: String, extraHops: List<List<PaymentRequest.TaggedField.ExtraHop>>, expirySeconds: Long? = null, timestampSeconds: Long = currentTimestampSeconds()): PaymentRequest
Content copied to clipboard
process
Link copied to clipboard
suspend fun process(channelId: ByteVector32, action: ChannelAction.Storage.StoreIncomingAmount)
Content copied to clipboard
Save the "received-with" details of an incoming amount.
suspend fun process(payToOpenRequest: PayToOpenRequest, currentBlockHeight: Int): IncomingPaymentHandler.ProcessAddResult
Content copied to clipboard
Process an incoming pay-to-open request. This is very similar to the processing of an htlc.
suspend fun process(htlc: UpdateAddHtlc, currentBlockHeight: Int): IncomingPaymentHandler.ProcessAddResult
Content copied to clipboard
Process an incoming htlc. Before calling this, the htlc must be committed and ack-ed by both sides.
purge Expired Payments
Link copied to clipboard
suspend fun purgeExpiredPayments(fromCreatedAt: Long = 0, toCreatedAt: Long = currentTimestampMillis()): Int
Content copied to clipboard
Purge all expired unpaid normal payments with creation times in the given time range.
Properties
db
Link copied to clipboard
nodeParams
Link copied to clipboard
walletParams
Link copied to clipboard