The figure was a massive increase from 22.3 billion francs in foreign currencies sold by the SNB in 2022, when the bank started selling off some of its huge foreign currency holdings.

The SNB's strategy has paid off, with Swiss inflation within its 0-2% target range for last nine months.

"The SNB's foreign currency sales contributed to the Swiss franc initially appreciating roughly in line with inflation differentials against other countries," the SNB said on Tuesday.

"In doing so, they prevented a weakening of the Swiss franc in real terms and thus helped in tightening monetary conditions," it added. "Towards the end of the year, the inflation rate fell significantly."

The SNB said it would no longer focus on foreign currency sales after achieving its goal. The central bank is due to announce its next monetary policy decisions on Thursday.

($1 = 0.8889 Swiss francs)

(Reporting by John Revill; Editing by Miranda Murray)