Spendable

class Spendable(var chainSelector: ChainSelector) : BCHserializable

This represents something that can be spent. It may not be spendable by ME, in which case the secret and perhaps other items will be unknown

Constructors

Link copied to clipboard
constructor(chainSelector: ChainSelector, out_point: iTxOutpoint, amount: Long)
constructor(chainSelector: ChainSelector, data: BCHserialized)
constructor(data: BCHserialized)
constructor(chainSelector: ChainSelector)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

RAM only: has this been changed since last saved to disk

Link copied to clipboard
Link copied to clipboard

Return true if this txo is unspent

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Has an in-progress (being readied by this wallet) transaction used this? 0 means no, 0 means yes. RAM ONLY -- anything that is reserved WILL NOT be flushed

Link copied to clipboard
Link copied to clipboard
val SPENDABLE_ID: Int = 2
Link copied to clipboard
Link copied to clipboard

spentDate is when the transaction was created (if unconfirmed) or when the transaction was confirmed, in epoch milliseconds. It MUST have a value if this TXO is spent!

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun BCHdeserialize(stream: BCHserialized): BCHserialized
Link copied to clipboard
open override fun BCHserialize(format: SerializationType): BCHserialized
Link copied to clipboard
fun dump(): String
Link copied to clipboard
Link copied to clipboard
open fun toByteArray(format: SerializationType = SerializationType.UNKNOWN): ByteArray
Link copied to clipboard
open override fun toString(): String