The information here is provided as we received a PM asking how to ‘flash’ a new sketch to an ESP over the internet i.e. a firmware update.
The basic sketch you need is at https://github.com/esp8266/Arduino/blob/633e48f3aec5f1c3c11d4498fc90d378d49e6e9f/libraries/ESP8266httpUpdate/examples/httpUpdate/httpUpdate.ino and it already exists in the Arduino IDE (File, Examples, ESP8266httpUpdate, httpUpdate)
Some notes are available at https://github.com/esp8266/Arduino/blob/633e48f3aec5f1c3c11d4498fc90d378d49e6e9f/doc/ota_updates/readme.md#http-server and pay attention to the amount of free space you have on the ESP to be able to do the upload.
Compile your new sketch but don’t upload to any hardware and it will create a bin file in a temporary directory. Transfer the bin to your http server via FTP or similar.
Decide if you want your sketch to update at certain times of the day or just on each reboot and include the required code accordingly.
As with all sketches, ensure the sketch works without Blynk and then add Blynk to the sketch.
The notes give guidance on how to check if an update should be done but start without this requirement and add it once you know the basic system works. What we did was simply hardcode a firmware version into each sketch, say version 0010 and increment it by 1 on each update. The existing sketch looks on the server for the next sequential number and does the update if the bin file is available.