[#wallet-GetWalletForJSONRPCRequest]
= xref:wallet.adoc[wallet]::GetWalletForJSONRPCRequest
:relfileprefix: ../
:mrdocs:

Figures out what wallet, if any, to use for a JSONRPCRequest&period;

== Synopsis

Declared in `&lt;wallet&sol;rpc&sol;util&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::shared&lowbar;ptr&lt;CWallet&gt;
GetWalletForJSONRPCRequest(xref:JSONRPCRequest.adoc[JSONRPCRequest] const& request);
----

== Return Value

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *request* [in]
| JSONRPCRequest that wishes to access a wallet
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
