pub async fn get_chain<N, P>(chain: Option<Chain>, provider: P) -> Result<Chain>where N: Network, P: Provider<N>,