Alternative solution for #8775. Looks more invasive than it is (mostly search & replace).
This PR does replace the RPC call signature (UniValue ¶ms, bool fHelp)
with (JSONRequest &request)
which allows the registered RPC calls to get more information about the request.
The JSONRequest
object contains the HTTP base auth username as well as the path of the called HTTP endpoint.
This PR would allow wallet distinction based on HTTP auth username and or URL endpoints.