Bitcoin Core 31.99.0
P2P Digital Currency
wallet.h
Go to the documentation of this file.
1// Copyright (c) 2018-present The Bitcoin Core developers
2// Distributed under the MIT software license, see the accompanying
3// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5#ifndef BITCOIN_INTERFACES_WALLET_H
6#define BITCOIN_INTERFACES_WALLET_H
7
8#include <addresstype.h>
10#include <common/types.h>
11#include <consensus/amount.h>
12#include <interfaces/chain.h>
14#include <pubkey.h>
15#include <script/script.h>
17#include <util/fs.h>
18#include <util/result.h>
19#include <util/ui_change_type.h>
20
21#include <cstdint>
22#include <functional>
23#include <map>
24#include <memory>
25#include <string>
26#include <tuple>
27#include <type_traits>
28#include <utility>
29#include <vector>
30
31class CFeeRate;
32class CKey;
33enum class FeeReason;
34enum class OutputType;
36struct bilingual_str;
37namespace common {
38enum class PSBTError;
39} // namespace common
40namespace node {
41enum class TransactionError;
42} // namespace node
43namespace wallet {
44struct CreatedTransactionResult;
45class CCoinControl;
46class CWallet;
47enum class AddressPurpose;
48struct CRecipient;
49struct WalletContext;
50} // namespace wallet
51
52namespace interfaces {
53
54class Handler;
55struct WalletAddress;
56struct WalletBalances;
57struct WalletTx;
58struct WalletTxOut;
59struct WalletTxStatus;
60struct WalletMigrationResult;
61
63class Wallet
64{
65public:
66 virtual ~Wallet() = default;
67
69 virtual bool encryptWallet(const SecureString& wallet_passphrase) = 0;
70
72 virtual bool isCrypted() = 0;
73
75 virtual bool lock() = 0;
76
78 virtual bool unlock(const SecureString& wallet_passphrase) = 0;
79
81 virtual bool isLocked() = 0;
82
84 virtual bool changeWalletPassphrase(const SecureString& old_wallet_passphrase,
85 const SecureString& new_wallet_passphrase) = 0;
86
88 virtual void abortRescan() = 0;
89
91 virtual bool backupWallet(const std::string& filename) = 0;
92
94 virtual std::string getWalletName() = 0;
95
96 // Get a new address.
97 virtual util::Result<CTxDestination> getNewDestination(OutputType type, const std::string& label) = 0;
98
100 virtual bool getPubKey(const CScript& script, const CKeyID& address, CPubKey& pub_key) = 0;
101
103 virtual SigningResult signMessage(const std::string& message, const PKHash& pkhash, std::string& str_sig) = 0;
104
106 virtual bool isSpendable(const CTxDestination& dest) = 0;
107
109 virtual bool setAddressBook(const CTxDestination& dest, const std::string& name, const std::optional<wallet::AddressPurpose>& purpose) = 0;
110
111 // Remove address.
112 virtual bool delAddressBook(const CTxDestination& dest) = 0;
113
115 virtual bool getAddress(const CTxDestination& dest,
116 std::string* name,
117 wallet::AddressPurpose* purpose) = 0;
118
120 virtual std::vector<WalletAddress> getAddresses() = 0;
121
123 virtual std::vector<std::string> getAddressReceiveRequests() = 0;
124
126 virtual bool setAddressReceiveRequest(const CTxDestination& dest, const std::string& id, const std::string& value) = 0;
127
130
132 virtual bool lockCoin(const COutPoint& output, bool write_to_db) = 0;
133
135 virtual bool unlockCoin(const COutPoint& output) = 0;
136
138 virtual bool isLockedCoin(const COutPoint& output) = 0;
139
141 virtual void listLockedCoins(std::vector<COutPoint>& outputs) = 0;
142
144 virtual util::Result<wallet::CreatedTransactionResult> createTransaction(const std::vector<wallet::CRecipient>& recipients,
145 const wallet::CCoinControl& coin_control,
146 bool sign,
147 std::optional<unsigned int> change_pos) = 0;
148
150 virtual void commitTransaction(CTransactionRef tx, const std::vector<std::string>& messages) = 0;
151
153 virtual bool transactionCanBeAbandoned(const Txid& txid) = 0;
154
156 virtual bool abandonTransaction(const Txid& txid) = 0;
157
159 virtual bool transactionCanBeBumped(const Txid& txid) = 0;
160
162 virtual bool createBumpTransaction(const Txid& txid,
163 const wallet::CCoinControl& coin_control,
164 std::vector<bilingual_str>& errors,
165 CAmount& old_fee,
166 CAmount& new_fee,
167 CMutableTransaction& mtx) = 0;
168
171
173 virtual bool commitBumpTransaction(const Txid& txid,
175 std::vector<bilingual_str>& errors,
176 Txid& bumped_txid) = 0;
177
179 virtual CTransactionRef getTx(const Txid& txid) = 0;
180
182 virtual WalletTx getWalletTx(const Txid& txid) = 0;
183
185 virtual std::set<WalletTx> getWalletTxs() = 0;
186
188 virtual bool tryGetTxStatus(const Txid& txid,
189 WalletTxStatus& tx_status,
190 int& num_blocks,
191 int64_t& block_time) = 0;
192
194 virtual WalletTx getWalletTxDetails(const Txid& txid,
195 WalletTxStatus& tx_status,
196 std::vector<std::string>& messages,
197 std::vector<std::string>& payment_requests,
198 bool& in_mempool,
199 int& num_blocks) = 0;
200
202 virtual std::optional<common::PSBTError> fillPSBT(const common::PSBTFillOptions& options,
203 size_t* n_signed,
205 bool& complete) = 0;
206
209
211 virtual bool tryGetBalances(WalletBalances& balances, uint256& block_hash) = 0;
212
214 virtual CAmount getBalance() = 0;
215
217 virtual CAmount getAvailableBalance(const wallet::CCoinControl& coin_control) = 0;
218
220 virtual bool txinIsMine(const CTxIn& txin) = 0;
221
223 virtual bool txoutIsMine(const CTxOut& txout) = 0;
224
226 virtual CAmount getDebit(const CTxIn& txin) = 0;
227
229 virtual CAmount getCredit(const CTxOut& txout) = 0;
230
233 using CoinsList = std::map<CTxDestination, std::vector<std::tuple<COutPoint, WalletTxOut>>>;
234 virtual CoinsList listCoins() = 0;
235
237 virtual std::vector<WalletTxOut> getCoins(const std::vector<COutPoint>& outputs) = 0;
238
240 virtual CAmount getRequiredFee(unsigned int tx_bytes) = 0;
241
243 virtual CAmount getMinimumFee(unsigned int tx_bytes,
244 const wallet::CCoinControl& coin_control,
245 int* returned_target,
246 FeeReason* reason) = 0;
247
249 virtual unsigned int getConfirmTarget() = 0;
250
251 // Return whether HD enabled.
252 virtual bool hdEnabled() = 0;
253
254 // Return whether the wallet is blank.
255 virtual bool canGetAddresses() = 0;
256
257 // Return whether private keys enabled.
258 virtual bool privateKeysDisabled() = 0;
259
260 // Return whether the wallet contains a Taproot scriptPubKeyMan
261 virtual bool taprootEnabled() = 0;
262
263 // Return whether wallet uses an external signer.
264 virtual bool hasExternalSigner() = 0;
265
266 // Get default address type.
268
271
272 // Remove wallet.
273 virtual void remove() = 0;
274
276 using UnloadFn = std::function<void()>;
277 virtual std::unique_ptr<Handler> handleUnload(UnloadFn fn) = 0;
278
280 using ShowProgressFn = std::function<void(const std::string& title, int progress)>;
281 virtual std::unique_ptr<Handler> handleShowProgress(ShowProgressFn fn) = 0;
282
284 using StatusChangedFn = std::function<void()>;
285 virtual std::unique_ptr<Handler> handleStatusChanged(StatusChangedFn fn) = 0;
286
288 using AddressBookChangedFn = std::function<void(const CTxDestination& address,
289 const std::string& label,
290 bool is_mine,
292 ChangeType status)>;
293 virtual std::unique_ptr<Handler> handleAddressBookChanged(AddressBookChangedFn fn) = 0;
294
296 using TransactionChangedFn = std::function<void(const Txid& txid, ChangeType status)>;
297 virtual std::unique_ptr<Handler> handleTransactionChanged(TransactionChangedFn fn) = 0;
298
300 using CanGetAddressesChangedFn = std::function<void()>;
301 virtual std::unique_ptr<Handler> handleCanGetAddressesChanged(CanGetAddressesChangedFn fn) = 0;
302
304 virtual wallet::CWallet* wallet() { return nullptr; }
305};
306
311{
312public:
314 virtual util::Result<std::unique_ptr<Wallet>> createWallet(const std::string& name, const SecureString& passphrase, uint64_t wallet_creation_flags, std::vector<bilingual_str>& warnings) = 0;
315
317 virtual util::Result<std::unique_ptr<Wallet>> loadWallet(const std::string& name, std::vector<bilingual_str>& warnings) = 0;
318
320 virtual std::string getWalletDir() = 0;
321
323 virtual util::Result<std::unique_ptr<Wallet>> restoreWallet(const fs::path& backup_file, const std::string& wallet_name, std::vector<bilingual_str>& warnings, bool load_after_restore) = 0;
324
326 virtual util::Result<WalletMigrationResult> migrateWallet(const std::string& name, const SecureString& passphrase) = 0;
327
329 virtual bool isEncrypted(const std::string& wallet_name) = 0;
330
332 virtual std::vector<std::pair<std::string, std::string>> listWalletDir() = 0;
333
335 virtual std::vector<std::unique_ptr<Wallet>> getWallets() = 0;
336
340 using LoadWalletFn = std::function<void(std::unique_ptr<Wallet> wallet)>;
341 virtual std::unique_ptr<Handler> handleLoadWallet(LoadWalletFn fn) = 0;
342
344 virtual wallet::WalletContext* context() { return nullptr; }
345};
346
349{
353 std::string name;
354
356 : dest(std::move(dest)), is_mine(is_mine), purpose(std::move(purpose)), name(std::move(name))
357 {
358 }
359};
360
363{
369
370 bool balanceChanged(const WalletBalances& prev) const
371 {
372 return balance != prev.balance || unconfirmed_balance != prev.unconfirmed_balance ||
375 }
376};
377
378// Wallet transaction information.
380{
382 std::vector<bool> txin_is_mine;
383 std::vector<bool> txout_is_mine;
384 std::vector<bool> txout_is_change;
385 std::vector<CTxDestination> txout_address;
386 std::vector<bool> txout_address_is_mine;
390 int64_t time;
391 std::optional<std::string> from; // Deprecated
392 std::optional<std::string> message; // Deprecated
393 std::optional<std::string> comment;
394 std::optional<std::string> comment_to;
396
397 bool operator<(const WalletTx& a) const { return tx->GetHash() < a.tx->GetHash(); }
398};
399
402{
406 unsigned int time_received;
407 uint32_t lock_time;
412};
413
416{
418 int64_t time;
420 bool is_spent = false;
421};
422
425{
426 std::unique_ptr<Wallet> wallet;
427 std::optional<std::string> watchonly_wallet_name;
428 std::optional<std::string> solvables_wallet_name;
429 fs::path backup_path;
430};
431
434std::unique_ptr<Wallet> MakeWallet(wallet::WalletContext& context, const std::shared_ptr<wallet::CWallet>& wallet);
435
438std::unique_ptr<WalletLoader> MakeWalletLoader(Chain& chain, ArgsManager& args);
439
440} // namespace interfaces
441
442#endif // BITCOIN_INTERFACES_WALLET_H
std::variant< CNoDestination, PubKeyDestination, PKHash, ScriptHash, WitnessV0ScriptHash, WitnessV0KeyHash, WitnessV1Taproot, PayToAnchor, WitnessUnknown > CTxDestination
A txout script categorized into standard templates.
Definition: addresstype.h:143
int64_t CAmount
Amount in satoshis (Can be negative)
Definition: amount.h:12
ArgsManager & args
Definition: bitcoind.cpp:280
Fee rate in satoshis per virtualbyte: CAmount / vB the feerate is represented internally as FeeFrac.
Definition: feerate.h:32
An encapsulated private key.
Definition: key.h:37
A reference to a CKey: the Hash160 of its serialized public key.
Definition: pubkey.h:24
An outpoint - a combination of a transaction hash and an index n into its vout.
Definition: transaction.h:29
An encapsulated public key.
Definition: pubkey.h:32
Serialized script, used inside transaction inputs and outputs.
Definition: script.h:406
An input of a transaction.
Definition: transaction.h:62
An output of a transaction.
Definition: transaction.h:140
A version of CTransaction with the PSBT format.
Definition: psbt.h:1240
Interface to let node manage chain clients (wallets, or maybe tools for monitoring and analysis in th...
Definition: chain.h:398
Interface giving clients (wallet processes, maybe other analysis tools in the future) ability to acce...
Definition: chain.h:118
Interface for accessing a wallet.
Definition: wallet.h:64
virtual void commitTransaction(CTransactionRef tx, const std::vector< std::string > &messages)=0
Commit transaction.
virtual std::unique_ptr< Handler > handleShowProgress(ShowProgressFn fn)=0
virtual bool unlockCoin(const COutPoint &output)=0
Unlock coin.
virtual CoinsList listCoins()=0
virtual bool getAddress(const CTxDestination &dest, std::string *name, wallet::AddressPurpose *purpose)=0
Look up address in wallet, return whether exists.
virtual bool txinIsMine(const CTxIn &txin)=0
Return whether transaction input belongs to wallet.
virtual bool getPubKey(const CScript &script, const CKeyID &address, CPubKey &pub_key)=0
Get public key.
virtual std::vector< WalletAddress > getAddresses()=0
Get wallet address list.
std::function< void(const std::string &title, int progress)> ShowProgressFn
Register handler for show progress messages.
Definition: wallet.h:280
virtual bool encryptWallet(const SecureString &wallet_passphrase)=0
Encrypt wallet.
virtual std::unique_ptr< Handler > handleStatusChanged(StatusChangedFn fn)=0
virtual bool abandonTransaction(const Txid &txid)=0
Abandon transaction.
virtual std::vector< WalletTxOut > getCoins(const std::vector< COutPoint > &outputs)=0
Return wallet transaction output information.
std::function< void()> UnloadFn
Register handler for unload message.
Definition: wallet.h:276
virtual bool isLocked()=0
Return whether wallet is locked.
virtual std::unique_ptr< Handler > handleAddressBookChanged(AddressBookChangedFn fn)=0
virtual std::unique_ptr< Handler > handleCanGetAddressesChanged(CanGetAddressesChangedFn fn)=0
virtual WalletTx getWalletTx(const Txid &txid)=0
Get transaction information.
virtual bool transactionCanBeAbandoned(const Txid &txid)=0
Return whether transaction can be abandoned.
virtual CAmount getAvailableBalance(const wallet::CCoinControl &coin_control)=0
Get available balance.
virtual std::set< WalletTx > getWalletTxs()=0
Get list of all wallet transactions.
std::function< void(const CTxDestination &address, const std::string &label, bool is_mine, wallet::AddressPurpose purpose, ChangeType status)> AddressBookChangedFn
Register handler for address book changed messages.
Definition: wallet.h:292
virtual CAmount getRequiredFee(unsigned int tx_bytes)=0
Get required fee.
virtual bool setAddressBook(const CTxDestination &dest, const std::string &name, const std::optional< wallet::AddressPurpose > &purpose)=0
Add or update address.
virtual wallet::CWallet * wallet()
Return pointer to internal wallet class, useful for testing.
Definition: wallet.h:304
virtual void abortRescan()=0
Abort a rescan.
std::function< void(const Txid &txid, ChangeType status)> TransactionChangedFn
Register handler for transaction changed messages.
Definition: wallet.h:296
virtual unsigned int getConfirmTarget()=0
Get tx confirm target.
virtual bool unlock(const SecureString &wallet_passphrase)=0
Unlock wallet.
virtual WalletTx getWalletTxDetails(const Txid &txid, WalletTxStatus &tx_status, std::vector< std::string > &messages, std::vector< std::string > &payment_requests, bool &in_mempool, int &num_blocks)=0
Get transaction details.
virtual bool changeWalletPassphrase(const SecureString &old_wallet_passphrase, const SecureString &new_wallet_passphrase)=0
Change wallet passphrase.
virtual std::string getWalletName()=0
Get wallet name.
virtual bool hasExternalSigner()=0
virtual bool tryGetBalances(WalletBalances &balances, uint256 &block_hash)=0
Get balances if possible without blocking.
virtual CAmount getDefaultMaxTxFee()=0
Get max tx fee.
virtual bool isSpendable(const CTxDestination &dest)=0
Return whether wallet has private key.
virtual CAmount getBalance()=0
Get balance.
virtual CAmount getDebit(const CTxIn &txin)=0
Return debit amount if transaction input belongs to wallet.
virtual bool hdEnabled()=0
virtual bool isLockedCoin(const COutPoint &output)=0
Return whether coin is locked.
virtual bool signBumpTransaction(CMutableTransaction &mtx)=0
Sign bump transaction.
std::map< CTxDestination, std::vector< std::tuple< COutPoint, WalletTxOut > > > CoinsList
Return AvailableCoins + LockedCoins grouped by wallet address.
Definition: wallet.h:233
virtual WalletBalances getBalances()=0
Get balances.
virtual OutputType getDefaultAddressType()=0
virtual CAmount getCredit(const CTxOut &txout)=0
Return credit amount if transaction input belongs to wallet.
virtual bool backupWallet(const std::string &filename)=0
Back up wallet.
virtual bool createBumpTransaction(const Txid &txid, const wallet::CCoinControl &coin_control, std::vector< bilingual_str > &errors, CAmount &old_fee, CAmount &new_fee, CMutableTransaction &mtx)=0
Create bump transaction.
virtual std::unique_ptr< Handler > handleTransactionChanged(TransactionChangedFn fn)=0
virtual void listLockedCoins(std::vector< COutPoint > &outputs)=0
List locked coins.
virtual CTransactionRef getTx(const Txid &txid)=0
Get a transaction.
virtual util::Result< CTxDestination > getNewDestination(OutputType type, const std::string &label)=0
virtual std::unique_ptr< Handler > handleUnload(UnloadFn fn)=0
virtual ~Wallet()=default
virtual bool delAddressBook(const CTxDestination &dest)=0
virtual bool transactionCanBeBumped(const Txid &txid)=0
Return whether transaction can be bumped.
virtual util::Result< wallet::CreatedTransactionResult > createTransaction(const std::vector< wallet::CRecipient > &recipients, const wallet::CCoinControl &coin_control, bool sign, std::optional< unsigned int > change_pos)=0
Create transaction.
virtual void remove()=0
std::function< void()> StatusChangedFn
Register handler for status changed messages.
Definition: wallet.h:284
virtual bool lockCoin(const COutPoint &output, bool write_to_db)=0
Lock coin.
virtual util::Result< void > displayAddress(const CTxDestination &dest)=0
Display address on external signer.
virtual bool setAddressReceiveRequest(const CTxDestination &dest, const std::string &id, const std::string &value)=0
Save or remove receive request.
virtual bool taprootEnabled()=0
virtual bool tryGetTxStatus(const Txid &txid, WalletTxStatus &tx_status, int &num_blocks, int64_t &block_time)=0
Try to get updated status for a particular transaction, if possible without blocking.
virtual bool txoutIsMine(const CTxOut &txout)=0
Return whether transaction output belongs to wallet.
virtual SigningResult signMessage(const std::string &message, const PKHash &pkhash, std::string &str_sig)=0
Sign message.
virtual std::optional< common::PSBTError > fillPSBT(const common::PSBTFillOptions &options, size_t *n_signed, PartiallySignedTransaction &psbtx, bool &complete)=0
Fill PSBT.
virtual bool privateKeysDisabled()=0
virtual bool lock()=0
Lock wallet.
std::function< void()> CanGetAddressesChangedFn
Register handler for keypool changed messages.
Definition: wallet.h:300
virtual CAmount getMinimumFee(unsigned int tx_bytes, const wallet::CCoinControl &coin_control, int *returned_target, FeeReason *reason)=0
Get minimum fee.
virtual std::vector< std::string > getAddressReceiveRequests()=0
Get receive requests.
virtual bool canGetAddresses()=0
virtual bool isCrypted()=0
Return whether wallet is encrypted.
virtual bool commitBumpTransaction(const Txid &txid, CMutableTransaction &&mtx, std::vector< bilingual_str > &errors, Txid &bumped_txid)=0
Commit bump transaction.
Wallet chain client that in addition to having chain client methods for starting up,...
Definition: wallet.h:311
virtual util::Result< std::unique_ptr< Wallet > > restoreWallet(const fs::path &backup_file, const std::string &wallet_name, std::vector< bilingual_str > &warnings, bool load_after_restore)=0
Restore backup wallet.
virtual util::Result< std::unique_ptr< Wallet > > createWallet(const std::string &name, const SecureString &passphrase, uint64_t wallet_creation_flags, std::vector< bilingual_str > &warnings)=0
Create new wallet.
virtual std::string getWalletDir()=0
Return default wallet directory.
virtual std::vector< std::unique_ptr< Wallet > > getWallets()=0
Return interfaces for accessing wallets (if any).
virtual util::Result< WalletMigrationResult > migrateWallet(const std::string &name, const SecureString &passphrase)=0
Migrate a wallet.
virtual wallet::WalletContext * context()
Return pointer to internal context, useful for testing.
Definition: wallet.h:344
virtual std::vector< std::pair< std::string, std::string > > listWalletDir()=0
Return available wallets in wallet directory.
virtual util::Result< std::unique_ptr< Wallet > > loadWallet(const std::string &name, std::vector< bilingual_str > &warnings)=0
Load existing wallet.
virtual bool isEncrypted(const std::string &wallet_name)=0
Returns true if wallet stores encryption keys.
std::function< void(std::unique_ptr< Wallet > wallet)> LoadWalletFn
Register handler for load wallet messages.
Definition: wallet.h:340
virtual std::unique_ptr< Handler > handleLoadWallet(LoadWalletFn fn)=0
256-bit opaque blob.
Definition: uint256.h:196
Coin Control Features.
Definition: coincontrol.h:84
A CWallet maintains a set of transactions and balances, and provides the ability to create new transa...
Definition: wallet.h:310
is a home for simple enum and struct type definitions that can be used internally by functions in the...
static int sign(const secp256k1_context *ctx, struct signer_secrets *signer_secrets, struct signer *signer, const secp256k1_musig_keyagg_cache *cache, const unsigned char *msg32, unsigned char *sig64)
Definition: musig.c:106
Definition: init.cpp:17
PSBTError
Definition: types.h:19
std::unique_ptr< WalletLoader > MakeWalletLoader(Chain &chain, ArgsManager &args)
Return implementation of ChainClient interface for a wallet loader.
Definition: dummywallet.cpp:59
std::unique_ptr< Wallet > MakeWallet(wallet::WalletContext &context, const std::shared_ptr< wallet::CWallet > &wallet)
Return implementation of Wallet interface.
Definition: interfaces.cpp:670
Definition: messages.h:21
TransactionError
Definition: types.h:19
AddressPurpose
Address purpose field that has been been stored with wallet sending and receiving addresses since BIP...
Definition: types.h:29
OutputType
Definition: outputtype.h:18
std::shared_ptr< const CTransaction > CTransactionRef
Definition: transaction.h:403
const char * name
Definition: rest.cpp:50
std::basic_string< char, std::char_traits< char >, secure_allocator< char > > SecureString
Definition: secure.h:53
SigningResult
Definition: signmessage.h:43
A mutable version of CTransaction.
Definition: transaction.h:358
Bilingual messages:
Definition: translation.h:24
Instructions for how a PSBT should be signed or filled with information.
Definition: types.h:32
Information about one wallet address.
Definition: wallet.h:349
CTxDestination dest
Definition: wallet.h:350
wallet::AddressPurpose purpose
Definition: wallet.h:352
WalletAddress(CTxDestination dest, bool is_mine, wallet::AddressPurpose purpose, std::string name)
Definition: wallet.h:355
Collection of wallet balances.
Definition: wallet.h:363
bool balanceChanged(const WalletBalances &prev) const
Definition: wallet.h:370
Migrated wallet info.
Definition: wallet.h:425
std::optional< std::string > watchonly_wallet_name
Definition: wallet.h:427
std::optional< std::string > solvables_wallet_name
Definition: wallet.h:428
std::unique_ptr< Wallet > wallet
Definition: wallet.h:426
std::vector< bool > txin_is_mine
Definition: wallet.h:382
std::optional< std::string > comment
Definition: wallet.h:393
std::vector< CTxDestination > txout_address
Definition: wallet.h:385
std::vector< bool > txout_address_is_mine
Definition: wallet.h:386
CTransactionRef tx
Definition: wallet.h:381
std::optional< std::string > comment_to
Definition: wallet.h:394
std::vector< bool > txout_is_change
Definition: wallet.h:384
std::vector< bool > txout_is_mine
Definition: wallet.h:383
std::optional< std::string > message
Definition: wallet.h:392
std::optional< std::string > from
Definition: wallet.h:391
bool operator<(const WalletTx &a) const
Definition: wallet.h:397
Wallet transaction output.
Definition: wallet.h:416
Updated transaction status.
Definition: wallet.h:402
unsigned int time_received
Definition: wallet.h:406
WalletContext struct containing references to state shared between CWallet instances,...
Definition: context.h:36
ChangeType
General change type (added, updated, removed).
Definition: ui_change_type.h:9