Bitcoin Core 29.99.0
P2P Digital Currency
wallet.h
Go to the documentation of this file.
1// Copyright (c) 2018-2022 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 <consensus/amount.h>
11#include <interfaces/chain.h>
12#include <pubkey.h>
13#include <script/script.h>
15#include <util/fs.h>
16#include <util/result.h>
18#include <util/ui_change_type.h>
19
20#include <cstdint>
21#include <functional>
22#include <map>
23#include <memory>
24#include <string>
25#include <tuple>
26#include <type_traits>
27#include <utility>
28#include <vector>
29
30class CFeeRate;
31class CKey;
32enum class FeeReason;
33enum class OutputType;
35struct bilingual_str;
36namespace common {
37enum class PSBTError;
38} // namespace common
39namespace node {
40enum class TransactionError;
41} // namespace node
42namespace wallet {
43class CCoinControl;
44class CWallet;
45enum class AddressPurpose;
46enum isminetype : unsigned int;
47struct CRecipient;
48struct WalletContext;
49using isminefilter = std::underlying_type_t<isminetype>;
50} // namespace wallet
51
52namespace interfaces {
53
54class Handler;
55struct WalletAddress;
56struct WalletBalances;
57struct WalletTx;
58struct WalletTxOut;
59struct WalletTxStatus;
60struct WalletMigrationResult;
61
62using WalletOrderForm = std::vector<std::pair<std::string, std::string>>;
63using WalletValueMap = std::map<std::string, std::string>;
64
66class Wallet
67{
68public:
69 virtual ~Wallet() = default;
70
72 virtual bool encryptWallet(const SecureString& wallet_passphrase) = 0;
73
75 virtual bool isCrypted() = 0;
76
78 virtual bool lock() = 0;
79
81 virtual bool unlock(const SecureString& wallet_passphrase) = 0;
82
84 virtual bool isLocked() = 0;
85
87 virtual bool changeWalletPassphrase(const SecureString& old_wallet_passphrase,
88 const SecureString& new_wallet_passphrase) = 0;
89
91 virtual void abortRescan() = 0;
92
94 virtual bool backupWallet(const std::string& filename) = 0;
95
97 virtual std::string getWalletName() = 0;
98
99 // Get a new address.
100 virtual util::Result<CTxDestination> getNewDestination(const OutputType type, const std::string& label) = 0;
101
103 virtual bool getPubKey(const CScript& script, const CKeyID& address, CPubKey& pub_key) = 0;
104
106 virtual SigningResult signMessage(const std::string& message, const PKHash& pkhash, std::string& str_sig) = 0;
107
109 virtual bool isSpendable(const CTxDestination& dest) = 0;
110
112 virtual bool setAddressBook(const CTxDestination& dest, const std::string& name, const std::optional<wallet::AddressPurpose>& purpose) = 0;
113
114 // Remove address.
115 virtual bool delAddressBook(const CTxDestination& dest) = 0;
116
118 virtual bool getAddress(const CTxDestination& dest,
119 std::string* name,
120 wallet::isminetype* is_mine,
121 wallet::AddressPurpose* purpose) = 0;
122
124 virtual std::vector<WalletAddress> getAddresses() = 0;
125
127 virtual std::vector<std::string> getAddressReceiveRequests() = 0;
128
130 virtual bool setAddressReceiveRequest(const CTxDestination& dest, const std::string& id, const std::string& value) = 0;
131
134
136 virtual bool lockCoin(const COutPoint& output, const bool write_to_db) = 0;
137
139 virtual bool unlockCoin(const COutPoint& output) = 0;
140
142 virtual bool isLockedCoin(const COutPoint& output) = 0;
143
145 virtual void listLockedCoins(std::vector<COutPoint>& outputs) = 0;
146
148 virtual util::Result<CTransactionRef> createTransaction(const std::vector<wallet::CRecipient>& recipients,
149 const wallet::CCoinControl& coin_control,
150 bool sign,
151 int& change_pos,
152 CAmount& fee) = 0;
153
156 WalletValueMap value_map,
157 WalletOrderForm order_form) = 0;
158
160 virtual bool transactionCanBeAbandoned(const Txid& txid) = 0;
161
163 virtual bool abandonTransaction(const Txid& txid) = 0;
164
166 virtual bool transactionCanBeBumped(const Txid& txid) = 0;
167
169 virtual bool createBumpTransaction(const Txid& txid,
170 const wallet::CCoinControl& coin_control,
171 std::vector<bilingual_str>& errors,
172 CAmount& old_fee,
173 CAmount& new_fee,
174 CMutableTransaction& mtx) = 0;
175
178
180 virtual bool commitBumpTransaction(const Txid& txid,
182 std::vector<bilingual_str>& errors,
183 Txid& bumped_txid) = 0;
184
186 virtual CTransactionRef getTx(const Txid& txid) = 0;
187
189 virtual WalletTx getWalletTx(const Txid& txid) = 0;
190
192 virtual std::set<WalletTx> getWalletTxs() = 0;
193
195 virtual bool tryGetTxStatus(const Txid& txid,
196 WalletTxStatus& tx_status,
197 int& num_blocks,
198 int64_t& block_time) = 0;
199
201 virtual WalletTx getWalletTxDetails(const Txid& txid,
202 WalletTxStatus& tx_status,
203 WalletOrderForm& order_form,
204 bool& in_mempool,
205 int& num_blocks) = 0;
206
208 virtual std::optional<common::PSBTError> fillPSBT(std::optional<int> sighash_type,
209 bool sign,
210 bool bip32derivs,
211 size_t* n_signed,
213 bool& complete) = 0;
214
217
219 virtual bool tryGetBalances(WalletBalances& balances, uint256& block_hash) = 0;
220
222 virtual CAmount getBalance() = 0;
223
225 virtual CAmount getAvailableBalance(const wallet::CCoinControl& coin_control) = 0;
226
228 virtual wallet::isminetype txinIsMine(const CTxIn& txin) = 0;
229
231 virtual wallet::isminetype txoutIsMine(const CTxOut& txout) = 0;
232
234 virtual CAmount getDebit(const CTxIn& txin, wallet::isminefilter filter) = 0;
235
237 virtual CAmount getCredit(const CTxOut& txout, wallet::isminefilter filter) = 0;
238
241 using CoinsList = std::map<CTxDestination, std::vector<std::tuple<COutPoint, WalletTxOut>>>;
242 virtual CoinsList listCoins() = 0;
243
245 virtual std::vector<WalletTxOut> getCoins(const std::vector<COutPoint>& outputs) = 0;
246
248 virtual CAmount getRequiredFee(unsigned int tx_bytes) = 0;
249
251 virtual CAmount getMinimumFee(unsigned int tx_bytes,
252 const wallet::CCoinControl& coin_control,
253 int* returned_target,
254 FeeReason* reason) = 0;
255
257 virtual unsigned int getConfirmTarget() = 0;
258
259 // Return whether HD enabled.
260 virtual bool hdEnabled() = 0;
261
262 // Return whether the wallet is blank.
263 virtual bool canGetAddresses() = 0;
264
265 // Return whether private keys enabled.
266 virtual bool privateKeysDisabled() = 0;
267
268 // Return whether the wallet contains a Taproot scriptPubKeyMan
269 virtual bool taprootEnabled() = 0;
270
271 // Return whether wallet uses an external signer.
272 virtual bool hasExternalSigner() = 0;
273
274 // Get default address type.
276
279
280 // Remove wallet.
281 virtual void remove() = 0;
282
284 using UnloadFn = std::function<void()>;
285 virtual std::unique_ptr<Handler> handleUnload(UnloadFn fn) = 0;
286
288 using ShowProgressFn = std::function<void(const std::string& title, int progress)>;
289 virtual std::unique_ptr<Handler> handleShowProgress(ShowProgressFn fn) = 0;
290
292 using StatusChangedFn = std::function<void()>;
293 virtual std::unique_ptr<Handler> handleStatusChanged(StatusChangedFn fn) = 0;
294
296 using AddressBookChangedFn = std::function<void(const CTxDestination& address,
297 const std::string& label,
298 bool is_mine,
300 ChangeType status)>;
301 virtual std::unique_ptr<Handler> handleAddressBookChanged(AddressBookChangedFn fn) = 0;
302
304 using TransactionChangedFn = std::function<void(const Txid& txid, ChangeType status)>;
305 virtual std::unique_ptr<Handler> handleTransactionChanged(TransactionChangedFn fn) = 0;
306
308 using CanGetAddressesChangedFn = std::function<void()>;
309 virtual std::unique_ptr<Handler> handleCanGetAddressesChanged(CanGetAddressesChangedFn fn) = 0;
310
312 virtual wallet::CWallet* wallet() { return nullptr; }
313};
314
319{
320public:
322 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;
323
325 virtual util::Result<std::unique_ptr<Wallet>> loadWallet(const std::string& name, std::vector<bilingual_str>& warnings) = 0;
326
328 virtual std::string getWalletDir() = 0;
329
331 virtual util::Result<std::unique_ptr<Wallet>> restoreWallet(const fs::path& backup_file, const std::string& wallet_name, std::vector<bilingual_str>& warnings) = 0;
332
334 virtual util::Result<WalletMigrationResult> migrateWallet(const std::string& name, const SecureString& passphrase) = 0;
335
337 virtual bool isEncrypted(const std::string& wallet_name) = 0;
338
340 virtual std::vector<std::pair<std::string, std::string>> listWalletDir() = 0;
341
343 virtual std::vector<std::unique_ptr<Wallet>> getWallets() = 0;
344
348 using LoadWalletFn = std::function<void(std::unique_ptr<Wallet> wallet)>;
349 virtual std::unique_ptr<Handler> handleLoadWallet(LoadWalletFn fn) = 0;
350
352 virtual wallet::WalletContext* context() { return nullptr; }
353};
354
357{
361 std::string name;
362
364 : dest(std::move(dest)), is_mine(is_mine), purpose(std::move(purpose)), name(std::move(name))
365 {
366 }
367};
368
371{
375
376 bool balanceChanged(const WalletBalances& prev) const
377 {
378 return balance != prev.balance || unconfirmed_balance != prev.unconfirmed_balance ||
380 }
381};
382
383// Wallet transaction information.
385{
387 std::vector<wallet::isminetype> txin_is_mine;
388 std::vector<wallet::isminetype> txout_is_mine;
389 std::vector<bool> txout_is_change;
390 std::vector<CTxDestination> txout_address;
391 std::vector<wallet::isminetype> txout_address_is_mine;
395 int64_t time;
396 std::map<std::string, std::string> value_map;
398
399 bool operator<(const WalletTx& a) const { return tx->GetHash() < a.tx->GetHash(); }
400};
401
404{
408 unsigned int time_received;
409 uint32_t lock_time;
414};
415
418{
420 int64_t time;
422 bool is_spent = false;
423};
424
427{
428 std::unique_ptr<Wallet> wallet;
429 std::optional<std::string> watchonly_wallet_name;
430 std::optional<std::string> solvables_wallet_name;
431 fs::path backup_path;
432};
433
436std::unique_ptr<Wallet> MakeWallet(wallet::WalletContext& context, const std::shared_ptr<wallet::CWallet>& wallet);
437
440std::unique_ptr<WalletLoader> MakeWalletLoader(Chain& chain, ArgsManager& args);
441
442} // namespace interfaces
443
444#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:277
Fee rate in satoshis per kilovirtualbyte: CAmount / kvB.
Definition: feerate.h:33
An encapsulated private key.
Definition: key.h:35
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:34
Serialized script, used inside transaction inputs and outputs.
Definition: script.h:415
An input of a transaction.
Definition: transaction.h:67
An output of a transaction.
Definition: transaction.h:150
Interface to let node manage chain clients (wallets, or maybe tools for monitoring and analysis in th...
Definition: chain.h:395
Interface giving clients (wallet processes, maybe other analysis tools in the future) ability to acce...
Definition: chain.h:130
Interface for accessing a wallet.
Definition: wallet.h:67
virtual std::unique_ptr< Handler > handleShowProgress(ShowProgressFn fn)=0
virtual bool unlockCoin(const COutPoint &output)=0
Unlock coin.
virtual CoinsList listCoins()=0
virtual CAmount getCredit(const CTxOut &txout, wallet::isminefilter filter)=0
Return credit amount if 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:288
virtual bool encryptWallet(const SecureString &wallet_passphrase)=0
Encrypt wallet.
virtual wallet::isminetype txoutIsMine(const CTxOut &txout)=0
Return whether transaction output belongs to 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:284
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.
virtual wallet::isminetype txinIsMine(const CTxIn &txin)=0
Return whether transaction input belongs to wallet.
virtual bool getAddress(const CTxDestination &dest, std::string *name, wallet::isminetype *is_mine, wallet::AddressPurpose *purpose)=0
Look up address in wallet, return whether exists.
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:300
virtual util::Result< CTxDestination > getNewDestination(const OutputType type, const std::string &label)=0
virtual CAmount getRequiredFee(unsigned int tx_bytes)=0
Get required fee.
virtual util::Result< CTransactionRef > createTransaction(const std::vector< wallet::CRecipient > &recipients, const wallet::CCoinControl &coin_control, bool sign, int &change_pos, CAmount &fee)=0
Create transaction.
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:312
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:304
virtual std::optional< common::PSBTError > fillPSBT(std::optional< int > sighash_type, bool sign, bool bip32derivs, size_t *n_signed, PartiallySignedTransaction &psbtx, bool &complete)=0
Fill PSBT.
virtual unsigned int getConfirmTarget()=0
Get tx confirm target.
virtual bool unlock(const SecureString &wallet_passphrase)=0
Unlock wallet.
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 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:241
virtual WalletBalances getBalances()=0
Get balances.
virtual OutputType getDefaultAddressType()=0
virtual bool backupWallet(const std::string &filename)=0
Back up wallet.
virtual void commitTransaction(CTransactionRef tx, WalletValueMap value_map, WalletOrderForm order_form)=0
Commit transaction.
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 bool lockCoin(const COutPoint &output, const bool write_to_db)=0
Lock coin.
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 void remove()=0
std::function< void()> StatusChangedFn
Register handler for status changed messages.
Definition: wallet.h:292
virtual util::Result< void > displayAddress(const CTxDestination &dest)=0
Display address on external signer.
virtual WalletTx getWalletTxDetails(const Txid &txid, WalletTxStatus &tx_status, WalletOrderForm &order_form, bool &in_mempool, int &num_blocks)=0
Get transaction details.
virtual CAmount getDebit(const CTxIn &txin, wallet::isminefilter filter)=0
Return debit amount if transaction input belongs to wallet.
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 SigningResult signMessage(const std::string &message, const PKHash &pkhash, std::string &str_sig)=0
Sign message.
virtual bool privateKeysDisabled()=0
virtual bool lock()=0
Lock wallet.
std::function< void()> CanGetAddressesChangedFn
Register handler for keypool changed messages.
Definition: wallet.h:308
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:319
virtual util::Result< std::unique_ptr< Wallet > > restoreWallet(const fs::path &backup_file, const std::string &wallet_name, std::vector< bilingual_str > &warnings)=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:352
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:348
virtual std::unique_ptr< Handler > handleLoadWallet(LoadWalletFn fn)=0
256-bit opaque blob.
Definition: uint256.h:196
Coin Control Features.
Definition: coincontrol.h:81
A CWallet maintains a set of transactions and balances, and provides the ability to create new transa...
Definition: wallet.h:301
uint64_t fee
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: args.cpp:868
PSBTError
Definition: types.h:17
std::unique_ptr< WalletLoader > MakeWalletLoader(Chain &chain, ArgsManager &args)
Return implementation of ChainClient interface for a wallet loader.
Definition: dummywallet.cpp:60
std::vector< std::pair< std::string, std::string > > WalletOrderForm
Definition: wallet.h:62
std::unique_ptr< Wallet > MakeWallet(wallet::WalletContext &context, const std::shared_ptr< wallet::CWallet > &wallet)
Return implementation of Wallet interface.
Definition: interfaces.cpp:684
std::map< std::string, std::string > WalletValueMap
Definition: wallet.h:63
Definition: messages.h:20
TransactionError
Definition: types.h:23
std::underlying_type_t< isminetype > isminefilter
used for bitflags of isminetype
Definition: wallet.h:49
isminetype
IsMine() return codes, which depend on ScriptPubKeyMan implementation.
Definition: types.h:41
AddressPurpose
Address purpose field that has been been stored with wallet sending and receiving addresses since BIP...
Definition: types.h:61
OutputType
Definition: outputtype.h:17
FeeReason
Definition: fees.h:60
std::shared_ptr< const CTransaction > CTransactionRef
Definition: transaction.h:423
const char * name
Definition: rest.cpp:49
std::basic_string< char, std::char_traits< char >, secure_allocator< char > > SecureString
Definition: secure.h:58
SigningResult
Definition: signmessage.h:43
A mutable version of CTransaction.
Definition: transaction.h:378
A version of CTransaction with the PSBT format.
Definition: psbt.h:1119
Bilingual messages:
Definition: translation.h:24
Information about one wallet address.
Definition: wallet.h:357
CTxDestination dest
Definition: wallet.h:358
wallet::isminetype is_mine
Definition: wallet.h:359
wallet::AddressPurpose purpose
Definition: wallet.h:360
WalletAddress(CTxDestination dest, wallet::isminetype is_mine, wallet::AddressPurpose purpose, std::string name)
Definition: wallet.h:363
Collection of wallet balances.
Definition: wallet.h:371
bool balanceChanged(const WalletBalances &prev) const
Definition: wallet.h:376
Migrated wallet info.
Definition: wallet.h:427
std::optional< std::string > watchonly_wallet_name
Definition: wallet.h:429
std::optional< std::string > solvables_wallet_name
Definition: wallet.h:430
std::unique_ptr< Wallet > wallet
Definition: wallet.h:428
std::vector< wallet::isminetype > txin_is_mine
Definition: wallet.h:387
std::vector< CTxDestination > txout_address
Definition: wallet.h:390
std::vector< wallet::isminetype > txout_address_is_mine
Definition: wallet.h:391
CTransactionRef tx
Definition: wallet.h:386
std::vector< bool > txout_is_change
Definition: wallet.h:389
std::map< std::string, std::string > value_map
Definition: wallet.h:396
bool operator<(const WalletTx &a) const
Definition: wallet.h:399
std::vector< wallet::isminetype > txout_is_mine
Definition: wallet.h:388
Wallet transaction output.
Definition: wallet.h:418
Updated transaction status.
Definition: wallet.h:404
unsigned int time_received
Definition: wallet.h:408
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