pub fn create_success_response(
id: Option<JsonRpcId>,
result: Value,
) -> JsonRpcResponse<NetworkRpcResult>
Expand description
Creates a success response following the JSON-RPC 2.0 specification.
§Arguments
id
- The request ID from the original JSON-RPC requestresult
- The result data to include in the response as a JSON value
§Returns
Returns a JsonRpcResponse<NetworkRpcResult>
containing the result data
wrapped in an EVM-specific result type, with no error information.