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.
Declared in <wallet/rpc/util.h>
std::string
EnsureUniqueWalletName(
JSONRPCRequest const& request,
std::optional<std::string_view> wallet_name);
The single wallet name agreed upon by the endpoint and wallet_name.
| 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. |