Access to the wallet database. Opens the database and provides read and write access to it. Each read and write is its own transaction. Multiple operation transactions can be started using TxnBegin() and committed using TxnCommit() Otherwise the transaction will be committed when the object goes out of scope. Optionally (on by default) it will flush to disk on close. Every 1000 writes will automatically trigger a flush to disk.
Synopsis
Declared in <wallet/walletdb.h>
class WalletBatch;
Member Functions
Name |
Description |
|
Constructors |
|
Wallet batches are non‐copyable. |
Removes the active ScriptPubKeyMan record for a key type. |
|
Erases all destination data for an address. |
|
Erases a receive request associated with an address. |
|
Removes the locked mark from an output. |
|
Erases the master key with the given id. |
|
Erases the address book label for an address. |
|
Erases the purpose string for an address. |
|
Delete records of the given types |
|
Erases the wallet transaction with the given txid. |
|
Returns whether a database transaction is currently active. |
|
Returns true if the wallet stores encryption keys. |
|
Loads the wallet contents from the database into the given wallet. |
|
Reads the best block locator scanned by the wallet. |
|
Registers db txn callback functions |
|
Abort current transaction |
|
Begin a new transaction |
|
Commit current transaction |
|
Records the active ScriptPubKeyMan for a key type. |
|
Records whether an address has previously been spent from. |
|
Writes a receive request associated with an address. |
|
Writes the best block locator scanned by the wallet. |
|
Writes an encrypted descriptor private key. |
|
Writes an encrypted private key and its metadata. |
|
Writes a wallet descriptor. |
|
Writes all cache items for a descriptor. |
|
Writes a derived extended public key into a descriptor's cache. |
|
Writes an unencrypted descriptor private key. |
|
Writes the last hardened extended public key into a descriptor's cache. |
|
Writes a parent extended public key into a descriptor's cache. |
|
Writes an unencrypted private key and its metadata. |
|
Writes metadata for a key. |
|
Marks an output as locked in the wallet. |
|
Writes a master key used to encrypt wallet keys. |
|
Writes the address book label for an address. |
|
Writes the next available transaction ordering position. |
|
Writes the purpose string for an address. |
|
Writes a wallet transaction record. |
|
Write the given |
|
Writes the wallet flags. |
|
Writes a watch‐only script and its metadata. |
|
Writes a wallet transaction variant record. |
Created with MrDocs