Bitcoin Core  24.99.0
P2P Digital Currency
wallet.h
Go to the documentation of this file.
1 // Copyright (c) 2019 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_TEST_UTIL_WALLET_H
6 #define BITCOIN_TEST_UTIL_WALLET_H
7 
8 #include <string>
9 
10 namespace wallet {
11 class CWallet;
12 } // namespace wallet
13 
14 // Constants //
15 
16 extern const std::string ADDRESS_BCRT1_UNSPENDABLE;
17 
18 // RPC-like //
19 
21 void importaddress(wallet::CWallet& wallet, const std::string& address);
24 
25 
26 #endif // BITCOIN_TEST_UTIL_WALLET_H
A CWallet maintains a set of transactions and balances, and provides the ability to create new transa...
Definition: wallet.h:236
Definition: node.h:39
void importaddress(wallet::CWallet &wallet, const std::string &address)
Import the address to the wallet.
std::string getnewaddress(wallet::CWallet &w)
Returns a new address from the wallet.
const std::string ADDRESS_BCRT1_UNSPENDABLE
Definition: wallet.cpp:18