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 class CWallet;
11 
12 // Constants //
13 
14 extern const std::string ADDRESS_BCRT1_UNSPENDABLE;
15 
16 // RPC-like //
17 
19 void importaddress(CWallet& wallet, const std::string& address);
21 std::string getnewaddress(CWallet& w);
22 
23 
24 #endif // BITCOIN_TEST_UTIL_WALLET_H
getnewaddress
std::string getnewaddress(CWallet &w)
Returns a new address from the wallet.
wallet
Definition: interfaces.cpp:50
ADDRESS_BCRT1_UNSPENDABLE
const std::string ADDRESS_BCRT1_UNSPENDABLE
Definition: wallet.cpp:15
importaddress
void importaddress(CWallet &wallet, const std::string &address)
Import the address to the wallet.
CWallet
A CWallet maintains a set of transactions and balances, and provides the ability to create new transa...
Definition: wallet.h:228