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 18 /** Import the address to the wallet */ 19 void importaddress(CWallet& wallet, const std::string& address); 20 /** Returns a new address from the wallet */ 21 std::string getnewaddress(CWallet& w); 22 23 24 #endif // BITCOIN_TEST_UTIL_WALLET_H 25