Skip to main content

jsonify_rpc

Macro jsonify_rpc 

Source
macro_rules! jsonify_rpc {
    ($state:expr, $request:expr) => { ... };
}
Expand description

Sends an RPC request and wraps the response in JSON.

Returns Result<Json<T>, AppError> where T is the RPC response type.