OutgoingPayment

data class OutgoingPayment(id: UUID, recipientAmount: MilliSatoshi, recipient: PublicKey, details: OutgoingPayment.Details, parts: List<OutgoingPayment.Part>, status: OutgoingPayment.Status, createdAt: Long) : WalletPayment

An outgoing payment sent by this node. The payment may be split in multiple parts, which may fail, be retried, and then either succeed or fail.

Parameters

id

internal payment identifier.

recipientAmount

total amount that will be received by the final recipient (NB: it doesn't contain the fees paid).

recipient

final recipient nodeId.

details

details that depend on the payment type (normal payments, swaps, etc).

parts

partial child payments that have actually been sent.

status

current status of the payment.

Constructors

OutgoingPayment
Link copied to clipboard
common
fun OutgoingPayment(id: UUID, amount: MilliSatoshi, recipient: PublicKey, details: OutgoingPayment.Details)
OutgoingPayment
Link copied to clipboard
common
fun OutgoingPayment(id: UUID, recipientAmount: MilliSatoshi, recipient: PublicKey, details: OutgoingPayment.Details, parts: List<OutgoingPayment.Part>, status: OutgoingPayment.Status, createdAt: Long = currentTimestampMillis())

Types

Details
Link copied to clipboard
common
sealed class Details
Part
Link copied to clipboard
common
data class Part(id: UUID, amount: MilliSatoshi, route: List<HopDesc>, status: OutgoingPayment.Part.Status, createdAt: Long)

An child payment sent by this node (partial payment of the total amount).

Status
Link copied to clipboard
common
sealed class Status

Functions

completedAt
Link copied to clipboard
common
fun completedAt(): Long

Absolute time in milliseconds since UNIX epoch when the payment was completed.

Properties

amount
Link copied to clipboard
common
open override val amount: MilliSatoshi

Amount actually sent for this payment. It does include the fees.

createdAt
Link copied to clipboard
common
val createdAt: Long
details
Link copied to clipboard
common
val details: OutgoingPayment.Details
fees
Link copied to clipboard
common
open override val fees: MilliSatoshi

Fees applied to complete this payment.

id
Link copied to clipboard
common
val id: UUID
parts
Link copied to clipboard
common
val parts: List<OutgoingPayment.Part>
paymentHash
Link copied to clipboard
common
val paymentHash: ByteVector32
recipient
Link copied to clipboard
common
val recipient: PublicKey
recipientAmount
Link copied to clipboard
common
val recipientAmount: MilliSatoshi
status
Link copied to clipboard
common
val status: OutgoingPayment.Status