pub fn invalid_params_rpc_err(msg: impl Into<String>) -> ErrorObject<'static>
Constructs an invalid params JSON-RPC error.