cuprated::rpc::json

Function map_request

Source
pub(super) async fn map_request(
    state: CupratedRpcHandler,
    request: JsonRpcRequest,
) -> Result<JsonRpcResponse, Error>
Expand description

Map a JsonRpcRequest to the function that will lead to a JsonRpcResponse.