Incoming Payment
data class IncomingPayment(preimage: ByteVector32, origin: IncomingPayment.Origin, received: IncomingPayment.Received?, createdAt: Long) : WalletPayment
Content copied to clipboard
An incoming payment received by this node. At first it is in a pending state, then will become either a success (if we receive a matching payment) or a failure (if the payment request expires).
Parameters
preimage
payment preimage, which acts as a proof-of-payment for the payer.
origin
origin of a payment (normal, swap, etc).
received
funds received for this payment, null if no funds have been received yet.
created At
absolute time in milliseconds since UNIX epoch when the payment request was generated.
Constructors
IncomingPayment
Link copied to clipboard
fun IncomingPayment(preimage: ByteVector32, origin: IncomingPayment.Origin)
Content copied to clipboard
IncomingPayment
Link copied to clipboard
fun IncomingPayment(preimage: ByteVector32, origin: IncomingPayment.Origin, received: IncomingPayment.Received?, createdAt: Long = currentTimestampMillis())
Content copied to clipboard
Types
Received
Link copied to clipboard
data class Received(receivedWith: Set<IncomingPayment.ReceivedWith>, receivedAt: Long)
Content copied to clipboard
Received With
Link copied to clipboard
sealed class ReceivedWith
Content copied to clipboard
Functions
completed At
Link copied to clipboard
Absolute time in milliseconds since UNIX epoch when the payment was completed.
is Expired
Link copied to clipboard
A payment expires if its origin is Origin.Invoice and its invoice has expired. Origin.KeySend or Origin.SwapIn do not expire.
Properties
amount
Link copied to clipboard
fees
Link copied to clipboard
origin
Link copied to clipboard
paymentHash
Link copied to clipboard
received
Link copied to clipboard