Deposit

@Serializable
data class Deposit(val id: String, val createdAt: Instant, val updatedAt: Instant, val status: TransactionStatus, val amount: CurrencyAmount, val blockHeight: Int, val destinationAddresses: List<String>, val resolvedAt: Instant? = null, val transactionHash: String? = null, val fees: CurrencyAmount? = null, val blockHash: String? = null, val numConfirmations: Int? = null) : OnChainTransaction, Transaction, Entity

The transaction on Bitcoin blockchain to fund the Lightspark node's wallet.

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.

blockHeight

The height of the block that included this transaction. This will be zero for unconfirmed transactions.

destinationAddresses

The Bitcoin blockchain addresses this transaction was sent to.

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 that were paid by the wallet sending the transaction to commit it to the Bitcoin blockchain.

blockHash

The hash of the block that included this transaction. This will be null for unconfirmed transactions.

numConfirmations

The number of blockchain confirmations for this transaction in real time.

Constructors

Link copied to clipboard
constructor(id: String, createdAt: Instant, updatedAt: Instant, status: TransactionStatus, amount: CurrencyAmount, blockHeight: Int, destinationAddresses: List<String>, resolvedAt: Instant? = null, transactionHash: String? = null, fees: CurrencyAmount? = null, blockHash: String? = null, numConfirmations: Int? = 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 blockHash: String? = null
Link copied to clipboard
open override val blockHeight: Int
Link copied to clipboard
open override val createdAt: Instant
Link copied to clipboard
open override val destinationAddresses: List<String>
Link copied to clipboard
open override val fees: CurrencyAmount? = null
Link copied to clipboard
open override val id: String
Link copied to clipboard
open override val numConfirmations: Int? = null
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