Skip to main content

encode_jsonrpc_send_response

Function encode_jsonrpc_send_response 

Source
pub fn encode_jsonrpc_send_response(
    request_id: &str,
    json_rpc_result: &str,
) -> Vec<u8> 
Expand description

Encode a host_jsonrpc_send response.

The response wraps the JSON-RPC result (or error) as a SCALE string inside the standard Result<String, Error> envelope.