Bitcoin Core  0.19.99
P2P Digital Currency
wallettool.h
Go to the documentation of this file.
1 // Copyright (c) 2016-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_WALLET_WALLETTOOL_H
6 #define BITCOIN_WALLET_WALLETTOOL_H
7 
8 #include <wallet/wallet.h>
9 
10 namespace WalletTool {
11 
12 std::shared_ptr<CWallet> CreateWallet(const std::string& name, const fs::path& path);
13 std::shared_ptr<CWallet> LoadWallet(const std::string& name, const fs::path& path);
14 void WalletShowInfo(CWallet* wallet_instance);
15 bool ExecuteWalletToolFunc(const std::string& command, const std::string& file);
16 
17 } // namespace WalletTool
18 
19 #endif // BITCOIN_WALLET_WALLETTOOL_H
static std::shared_ptr< CWallet > CreateWallet(const std::string &name, const fs::path &path)
Definition: wallettool.cpp:22
static void WalletShowInfo(CWallet *wallet_instance)
Definition: wallettool.cpp:93
static std::shared_ptr< CWallet > LoadWallet(const std::string &name, const fs::path &path)
Definition: wallettool.cpp:50
const char * name
Definition: rest.cpp:40
A CWallet maintains a set of transactions and balances, and provides the ability to create new transa...
Definition: wallet.h:606
bool ExecuteWalletToolFunc(const std::string &command, const std::string &name)
Definition: wallettool.cpp:105