pub fn extract_client_config_from_ctx<State>( ctx: &Context<State>, ) -> Option<ClientConfigChainRef<'_>>