MacAskill, 24, became a YouTube phenomenon after a video was posted of him performing daredevil stunts around Edinburgh.

He has now been offered a lucrative deal by the team behind the last Indiana Jones movie.

In the movie, Premium Rush – which begins filming in Manhattan in April – a group of bike messengers are pursued through New York by a criminal gang. It is being made by David Koepp, whose film credits include the Spider-Man films.

Koepp invited MacAskill to perform all the film’s stunts after he viewed the YouTube clip that shows MacAskill perform gravity-defying acts such as cycling up and down trees and somersaulting off roofs. The clip has attracted more than 13 million hits since it was posted last year.

The film offer comes after MacAskill appeared in a TV ad for the recruitment website s1jobs.com, part of the Herald group.

MacAskill, from Skye, now lives in Edinburgh. He said: “Having a Hollywood director phone me up and ask me to be in his film is beyond crazy. The idea of being in a major film is a million miles away from my old life of working in a bike shop in Edinburgh.”