WalletDatabase

Properties

Link copied to clipboard
abstract val kvp: KvpDatabase
Link copied to clipboard
abstract val tx: TxDatabase
Link copied to clipboard
abstract val txo: TxoDatabase

Functions

Link copied to clipboard
open fun delete(key: ByteArray)
open fun delete(key: String)
Link copied to clipboard
open fun get(key: ByteArray): ByteArray

look up the passed key, throwing DataMissingException if it does not exist

open fun get(key: String): ByteArray

look up the passed key, returning the value or throwing DataMissingException

Link copied to clipboard
open fun getInt(key: String): Int
Link copied to clipboard
open fun getLong(key: String): Long
Link copied to clipboard
open fun getOrNull(key: ByteArray): ByteArray?

look up the passed key, returning the value or null if it does not exist

Link copied to clipboard
open fun set(key: ByteArray, value: ByteArray): Boolean
open fun set(key: String, value: ByteArray): Boolean

update or insert a key value pair into the database

open fun set(key: String, value: Int)
open fun set(key: String, value: Long)