Expand description
Native JSON-RPC endpoint server. Native JSON-RPC listeners: routing, per-listener authorization, and the JSON-RPC dispatch.
Both listeners are built by secure_router, whose security layer decodes a JSON-RPC body
exactly once, decides the request’s authorization requirement through
crate::native::api_auth::ApiListener::required_authorization, and hands the decoded
request to the route handler as a DecodedJsonRpc extension so that no later stage buffers
or parses the body again.
Structs§
- Gateway
Status State - Gateway status endpoint state.
- Json
Response - JSON response struct
- Json
RpcState - JSON-RPC state
- Status
State - Status state
Functions§
- run_
external_ api - Run a web server to handle jsonrpc request from external
- run_
internal_ api_ with_ gateway - Run the local JSON-RPC server with an optional foreground-gateway status endpoint.