wallet::GetWalletNameFromJSONRPCRequest

Extracts the wallet name encoded in a JSON-RPC request endpoint, if any.

Synopsis

Declared in <wallet/rpc/util.h>

std::optional<std::string>
GetWalletNameFromJSONRPCRequest(JSONRPCRequest const& request);

Return Value

The wallet name, or an empty optional if none is present.

Parameters

NameDescription
requestThe JSON-RPC request to inspect.