wallet::GetWalletForJSONRPCRequest

Figures out what wallet, if any, to use for a JSONRPCRequest.

Synopsis

Declared in <wallet/rpc/util.h>

std::shared_ptr<CWallet>
GetWalletForJSONRPCRequest(JSONRPCRequest const& request);

Return Value

nullptr if no wallet should be used, or a pointer to the CWallet

Parameters

NameDescription
request [in]JSONRPCRequest that wishes to access a wallet