Function bitcoin_cli::connect_and_callrpc
source · pub fn connect_and_callrpc(
rh: &mut Box<dyn BaseRequestHandler>,
str_method: &str,
args: &Vec<String>,
rpcwallet: Option<&str>
) -> Result<UniValue, StdException>Expand description
| ConnectAndCallRPC wraps CallRPC with | -rpcwait and an exception handler. | | ———– | @param[in] rh | | Pointer to RequestHandler. | ––––– | @param[in] strMethod | | Reference to const string method to | forward to CallRPC. | ––––– | @param[in] rpcwallet | | Reference to const optional string | wallet name to forward to CallRPC. | | ———– | @return | | the RPC response as a UniValue object. | @throws a CConnectionFailed std::runtime_error | if connection failed or RPC server still | in warmup. |