UtxoDatabase

abstract class UtxoDatabase : RoomDatabase

Room database for UTXO storage.

Stores unshielded UTXOs and dust tokens for local balance calculation. Eventually will also store shielded UTXOs (future).

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val isOpen: Boolean
Link copied to clipboard
Link copied to clipboard
val path: String?
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
open fun beginTransaction()
Link copied to clipboard
abstract fun clearAllTables()
Link copied to clipboard
open fun close()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun dustDao(): DustDao

DAO for dust token operations.

Link copied to clipboard
open fun endTransaction()
Link copied to clipboard
Link copied to clipboard
fun getCoroutineScope(): CoroutineScope
Link copied to clipboard
Link copied to clipboard
open fun <T : Any> getTypeConverter(klass: Class<T>): T?
fun <T : Any> getTypeConverter(klass: KClass<T>): T
Link copied to clipboard
Link copied to clipboard
open fun init(configuration: DatabaseConfiguration)
Link copied to clipboard
Link copied to clipboard
open fun query(query: String, args: Array<out Any?>?): Cursor
Link copied to clipboard
open fun runInTransaction(body: Runnable)
open fun <V> runInTransaction(body: Callable<V>): V
Link copied to clipboard
Link copied to clipboard

DAO for unshielded UTXO operations.

Link copied to clipboard
suspend fun <R> useConnection(isReadOnly: Boolean, block: suspend (Transactor) -> R): R