fn write_to_env_file<N: Network>( private_key: PrivateKey<N>, ctx: &Context, endpoint: String, ) -> Result<()>