pub fn invalid_input_rpc_err(msg: impl Into<String>) -> Error