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
10class CWallet;
11
12// Constants //
13
14extern const std::string ADDRESS_BCRT1_UNSPENDABLE;
15
16// RPC-like //
17
19void importaddress(CWallet& wallet, const std::string& address);
21std::string getnewaddress(CWallet& w);
22
23
24#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:229
std::string getnewaddress(CWallet &w)
Returns a new address from the wallet.
const std::string ADDRESS_BCRT1_UNSPENDABLE
Definition: wallet.cpp:15
void importaddress(CWallet &wallet, const std::string &address)
Import the address to the wallet.