pub async fn optimize_endpoint( url: &str, expected_chain: Option<Chain>, timeout_secs: u64, ) -> Result<OptimizationResult>
Optimize an endpoint by detecting its capabilities