[#wallet-EnsureUniqueWalletName] = xref:wallet.adoc[wallet]::EnsureUniqueWalletName :relfileprefix: ../ :mrdocs: Ensures that a wallet name is specified across the endpoint and wallet_name. Throws `RPC_INVALID_PARAMETER` if none or different wallet names are specified. == Synopsis Declared in `<wallet/rpc/util.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string EnsureUniqueWalletName( xref:JSONRPCRequest.adoc[JSONRPCRequest] const& request, std::optional<std::string_view> wallet_name); ---- == Return Value The single wallet name agreed upon by the endpoint and wallet_name. == Parameters [cols="1,4"] |=== | Name| Description | *request* | The JSON‐RPC request that may encode a wallet name in its endpoint. | *wallet_name* | An explicitly supplied wallet name, if any. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#