The invention relates to an unmanned aerial vehicle with a protection function based on a blockchain technology. The unmanned aerial vehicle comprises a body, a camera and four flying devices. Two buffering mechanisms are arranged on the two sides of the body correspondingly, and each buffering mechanism comprises a first sliding rod, a connecting block, a second spring, a sliding groove, a firstpermanent magnet, a second permanent magnet, two supporting sleeves and two supports; a take-up and pay-off mechanism is further arranged in the body and comprises a storage opening, a lifting plate,two second sliding rods, two first springs and two switching assemblies; and each switching assembly comprises a connecting sleeve, a positioning rope, a connecting line, a fixed pulley, a fixed sleeve, a fixed rod and an elastic rope. According to the unmanned aerial vehicle with the protection function based on the blockchain technology, impact force borne by the unmanned aerial vehicle during landing can be absorbed through the buffering mechanisms, and the damage probability of the unmanned aerial vehicle is reduced; and by means of the take-up and pay-off mechanism, when the unmanned aerial vehicle is crashed, the camera can be stored in the body, and the damage probability of the camera is reduced.