TxoDatabase

Functions

Link copied to clipboard
abstract fun clear()

Delete all items

Link copied to clipboard
abstract fun close()

close this database, releasing any resources

Link copied to clipboard
abstract fun delete(outpoint: ByteArray)
abstract fun delete(outpoints: Collection<iTxOutpoint>)
abstract fun delete(outpoint: iTxOutpoint)
Link copied to clipboard
abstract fun forEach(doit: (Spendable) -> Boolean)
Link copied to clipboard
abstract fun forEachUtxo(doit: (Spendable) -> Boolean)
Link copied to clipboard
abstract fun forEachUtxoWithAddress(addr: PayAddress, doit: (Spendable) -> Boolean)
Link copied to clipboard
abstract fun forEachWithAddress(addr: PayAddress, doit: (Spendable) -> Boolean)
Link copied to clipboard
abstract fun numTxos(): Long
Link copied to clipboard
abstract fun numUtxos(): Long
Link copied to clipboard
abstract fun read(outpoint: ByteArray): Spendable?
abstract fun read(outpoint: iTxOutpoint): Spendable?
Link copied to clipboard

Read all items and return a map of each entry

Link copied to clipboard
Link copied to clipboard
abstract fun write(vararg splist: Spendable?)

abstract fun write(splist: Collection<Spendable?>)

Insert or overwrite the passed txos into the database

Link copied to clipboard
abstract fun writeAll(fullmap: MutableMap<iTxOutpoint, Spendable>)

Insert or overwrite all items in the provided map into the database

Link copied to clipboard
abstract fun writeDirty(fullmap: MutableMap<iTxOutpoint, Spendable>): Int

Insert or overwrite all changed items in the provided map into the database