Context and parameters for a single JSON-RPC request.
Declared in <rpc/request.h>
class JSONRPCRequest;
| Name | Description |
|---|---|
Mode | How the request should be handled. |
| Name | Description |
|---|---|
IsNotification | Report whether this request is a JSON-RPC 2.0 notification. |
parse | Parse a JSON-RPC request object into this instance. |
| Name | Description |
|---|---|
URI | The transport URI the request arrived on. |
authUser | The authenticated user that made the request. |
context | Opaque per-connection context passed to the method. |
id | The request id echoed back in the reply. |
m_json_version | The JSON-RPC protocol version of the request. |
mode | The handling mode for this request. |
params | The method parameters. |
peerAddr | The network address of the requesting peer. |
strMethod | The requested RPC method name. |
| Name | Description |
|---|---|
JSONRPCExec | Execute an RPC request and return its JSON-RPC reply. |
wallet::EnsureUniqueWalletName | 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. |
wallet::GetWalletForJSONRPCRequest | Figures out what wallet, if any, to use for a JSONRPCRequest. |
wallet::GetWalletNameFromJSONRPCRequest | Extracts the wallet name encoded in a JSON-RPC request endpoint, if any. |