Skip to main content

Module endpoint

Module endpoint 

Source
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§

GatewayStatusState
Gateway status endpoint state.
JsonResponse
JSON response struct
JsonRpcState
JSON-RPC state
StatusState
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.