Fix incorrect Doxygen tag (@ince → @since). Make Doxygen parameter names match actual...
[bitcoinplatinum.git] / src / wallet / rpcwallet.h
blob31e2f6a69994dfabd3e06f8dc59b31bbb44f8b91
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
8 class CRPCTable;
9 class JSONRPCRequest;
11 void RegisterWalletRPCCommands(CRPCTable &t);
13 /**
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