Bitcoin Core  22.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);
23 std::string getnewaddress(wallet::CWallet& w);
24 
25 
26 #endif // BITCOIN_TEST_UTIL_WALLET_H
wallet
Definition: node.h:38
getnewaddress
std::string getnewaddress(wallet::CWallet &w)
Returns a new address from the wallet.
wallet::CWallet
A CWallet maintains a set of transactions and balances, and provides the ability to create new transa...
Definition: wallet.h:232
importaddress
void importaddress(wallet::CWallet &wallet, const std::string &address)
Import the address to the wallet.
ADDRESS_BCRT1_UNSPENDABLE
const std::string ADDRESS_BCRT1_UNSPENDABLE
Definition: wallet.cpp:17