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