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

Extracts the wallet name encoded in a JSON&hyphen;RPC request endpoint, if any&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::optional&lt;std::string&gt;
GetWalletNameFromJSONRPCRequest(xref:JSONRPCRequest.adoc[JSONRPCRequest] const& request);
----

== Return Value

The wallet name, or an empty optional if none is present&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *request*
| The JSON&hyphen;RPC request to inspect&period;
|===


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