1 // Copyright (c) 2016 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.
5 #ifndef BITCOIN_WALLET_RPCWALLET_H
6 #define BITCOIN_WALLET_RPCWALLET_H
11 void RegisterWalletRPCCommands(CRPCTable
&t
);
14 * Figures out what wallet, if any, to use for a JSONRPCRequest.
16 * @param[in] request JSONRPCRequest that wishes to access a wallet
17 * @return NULL if no wallet should be used, or a pointer to the CWallet
19 CWallet
*GetWalletForJSONRPCRequest(const JSONRPCRequest
& request
);
21 std::string
HelpRequiringPassphrase(CWallet
*);
22 void EnsureWalletIsUnlocked(CWallet
*);
23 bool EnsureWalletIsAvailable(CWallet
*, bool avoidException
);
25 #endif //BITCOIN_WALLET_RPCWALLET_H