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>
std::string
EnsureUniqueWalletName(
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
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. |
Created with MrDocs