wallet::WalletBatch::WriteKeyMetadata

Writes metadata for a key.

Synopsis

Declared in <wallet/walletdb.h>

bool
WriteKeyMetadata(
    CKeyMetadata const& meta,
    CPubKey const& pubkey,
    bool overwrite);

Return Value

true if the record was written.

Parameters

NameDescription
metaThe key metadata to store.
pubkeyThe public key the metadata applies to.
overwriteWhether to overwrite an existing record.