pub trait BaseRequestHandler {
    // Required methods
    fn prepare_request(
        &mut self,
        method: &str,
        args: &Vec<String>
    ) -> Result<UniValue, StdException>;
    fn process_reply(
        &mut self,
        batch_in: &UniValue
    ) -> Result<UniValue, StdException>;
}
Expand description

| Class that handles the conversion from | a command-line to a JSON-RPC request, | as well as converting back to a JSON object | that can be shown as result. |

Required Methods§

source

fn prepare_request( &mut self, method: &str, args: &Vec<String> ) -> Result<UniValue, StdException>

source

fn process_reply( &mut self, batch_in: &UniValue ) -> Result<UniValue, StdException>

Implementors§