OutgoingPayment

@Serializable
data class OutgoingPayment(val id: String, val createdAt: Instant, val updatedAt: Instant, val status: TransactionStatus, val amount: CurrencyAmount, val resolvedAt: Instant? = null, val transactionHash: String? = null, val fees: CurrencyAmount? = null, val paymentRequestData: PaymentRequestData? = null, val failureReason: PaymentFailureReason? = null, val failureMessage: RichText? = null) : LightningTransaction, Transaction, Entity

A transaction that was sent from a Lightspark node on the Lightning Network.

Parameters

id

The unique identifier of this entity across all Lightspark systems. Should be treated as an opaque string.

createdAt

The date and time when this transaction was initiated.

updatedAt

The date and time when the entity was last updated.

status

The current status of this transaction.

amount

The amount of money involved in this transaction.

resolvedAt

The date and time when this transaction was completed or failed.

transactionHash

The hash of this transaction, so it can be uniquely identified on the Lightning Network.

fees

The fees paid by the sender node to send the payment.

paymentRequestData

The data of the payment request that was paid by this transaction, if known.

failureReason

If applicable, the reason why the payment failed.

failureMessage

If applicable, user-facing error message describing why the payment failed.

Constructors

Link copied to clipboard
constructor(id: String, createdAt: Instant, updatedAt: Instant, status: TransactionStatus, amount: CurrencyAmount, resolvedAt: Instant? = null, transactionHash: String? = null, fees: CurrencyAmount? = null, paymentRequestData: PaymentRequestData? = null, failureReason: PaymentFailureReason? = null, failureMessage: RichText? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val amount: CurrencyAmount
Link copied to clipboard
open override val createdAt: Instant
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val fees: CurrencyAmount? = null
Link copied to clipboard
open override val id: String
Link copied to clipboard
Link copied to clipboard
open override val resolvedAt: Instant? = null
Link copied to clipboard
open override val status: TransactionStatus
Link copied to clipboard
open override val transactionHash: String? = null
Link copied to clipboard
open override val updatedAt: Instant