A western in which, at the end, they discover the hidden gold coin treasure between the walls of a canyon

It’s a western from the 60s or early 70s. I remember the ending where the protagonist is chased through the desert until reaching the entrance of a canyon. He shoots at the canyon walls, causing the hidden coins to fall to the ground.

1 Answer

1

Maybe?:

The ending of this movie is very similar. Western, 1960s, canyon and gold at the end.

Similar, but in that movie, the gold is discovered when a wall of the canyon collapses. I'm looking for a western where the loot is in coins and hidden high up on the canyon wall. The protagonist uses gunshots to make those coins fall onto the people who were there.