Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/rpcwallet.h
Show All 9 Lines | |||||
#include <memory> | #include <memory> | ||||
#include <string> | #include <string> | ||||
#include <vector> | #include <vector> | ||||
class CRPCCommand; | class CRPCCommand; | ||||
class CTransaction; | class CTransaction; | ||||
class CWallet; | class CWallet; | ||||
class Config; | |||||
class JSONRPCRequest; | class JSONRPCRequest; | ||||
class LegacyScriptPubKeyMan; | class LegacyScriptPubKeyMan; | ||||
struct PartiallySignedTransaction; | struct PartiallySignedTransaction; | ||||
class UniValue; | class RPCHelpMan; | ||||
struct WalletContext; | struct WalletContext; | ||||
namespace util { | namespace util { | ||||
class Ref; | class Ref; | ||||
} | } | ||||
Span<const CRPCCommand> GetWalletRPCCommands(); | Span<const CRPCCommand> GetWalletRPCCommands(); | ||||
/** | /** | ||||
* Figures out what wallet, if any, to use for a JSONRPCRequest. | * Figures out what wallet, if any, to use for a JSONRPCRequest. | ||||
* | * | ||||
* @param[in] request JSONRPCRequest that wishes to access a wallet | * @param[in] request JSONRPCRequest that wishes to access a wallet | ||||
* @return NULL if no wallet should be used, or a pointer to the CWallet | * @return NULL if no wallet should be used, or a pointer to the CWallet | ||||
*/ | */ | ||||
std::shared_ptr<CWallet> | std::shared_ptr<CWallet> | ||||
GetWalletForJSONRPCRequest(const JSONRPCRequest &request); | GetWalletForJSONRPCRequest(const JSONRPCRequest &request); | ||||
void EnsureWalletIsUnlocked(const CWallet *); | void EnsureWalletIsUnlocked(const CWallet *); | ||||
WalletContext &EnsureWalletContext(const util::Ref &context); | WalletContext &EnsureWalletContext(const util::Ref &context); | ||||
LegacyScriptPubKeyMan &EnsureLegacyScriptPubKeyMan(CWallet &wallet, | LegacyScriptPubKeyMan &EnsureLegacyScriptPubKeyMan(CWallet &wallet, | ||||
bool also_create = false); | bool also_create = false); | ||||
UniValue signrawtransactionwithwallet(const Config &config, | RPCHelpMan signrawtransactionwithwallet(); | ||||
const JSONRPCRequest &request); | RPCHelpMan getaddressinfo(); | ||||
UniValue getaddressinfo(const Config &config, const JSONRPCRequest &request); | |||||
#endif // BITCOIN_WALLET_RPCWALLET_H | #endif // BITCOIN_WALLET_RPCWALLET_H |