zcash-android-wallet-sdk / cash.z.wallet.sdk.db / DerivedDataDb

DerivedDataDb

abstract class DerivedDataDb : RoomDatabase

The "Data DB," where all data derived from the compact blocks is stored. Most importantly, this database contains transaction information and can be queried for the current balance. The "blocks" table contains a copy of everything that has been scanned. In the future, that table can be truncated up to the last scanned block, for storage efficiency. Wallets should only read from, but never write to, this database.

Constructors

<init>

The "Data DB," where all data derived from the compact blocks is stored. Most importantly, this database contains transaction information and can be queried for the current balance. The "blocks" table contains a copy of everything that has been scanned. In the future, that table can be truncated up to the last scanned block, for storage efficiency. Wallets should only read from, but never write to, this database.

DerivedDataDb()

Functions

blockDao

abstract fun blockDao(): BlockDao

receivedDao

abstract fun receivedDao(): ReceivedDao

sentDao

abstract fun sentDao(): SentDao

transactionDao

abstract fun transactionDao(): TransactionDao