El Salvador has become the first country to make bitcoin legal tender, a move President Nayib Bukele hailed as a historic step towards financial inclusion and economic growth for the poor Central American nation.

The legislature, which Bukele controls, passed the bill with 62 of 84 possible votes on Wednesday. “History!” the 39-year-old authoritarian head of state wrote on Twitter.

Bitcoin entrepreneurs were thrilled by the decision in a country where 70 per cent of Salvadorans do not have access to traditional financial services. Analysts were cautious given cryptocurrency’s volatility, and some said it could even put a pending IMF programme at risk.

“This just feels like a bad idea . . . in effect, El Salvador will have two currency regimes operating in the country with control over none of them,” said Bipan Rai, currency analyst at CIBC.

The law stated that “in order to promote the economic growth of the nation, it is necessary to authorise the circulation of a digital currency whose value answers exclusively to free-market criteria, in order to increase national wealth for the benefit of the greatest number of inhabitants”.

Under the law, bitcoin can be used for purchases or tax payments, and bitcoin exchanges will not be subject to capital gains tax.

Some poor countries have proposed cryptocurrencies as a way of ending reliance on the dollar, which El Salvador made legal tender in 2000.

“It has drawbacks,” said Hugo Renaudin, a crypto entrepreneur. “From a monetary perspective, it relies on another currency . . . and transaction fees are quite expensive for small purchases, so you may not be able to buy a coffee in bitcoin — the fees would be higher than the coffee — but you could buy a flat.”

Bitcoin was trading at $34,300, down 50 per cent from its peak in April.

Salvadorans are highly reliant on remittances. Payments from family members in the US make up one-fifth of gross domestic product, according to the World Bank. Bitcoin could make that process cheaper, said Juan Pablo Thieriot, chief executive of Uphold, a financial services platform that enables payments and trading in bitcoin or other currencies and instruments.

Venezuela unveiled plans in 2018 for an oil-backed cryptocurrency, the petro, in an attempt to circumvent US sanctions, but it has been a flop.

Siobhan Morden, head of Latin America fixed income strategy at Amherst Pierpont Securities, said El Salvador’s move was in keeping with Bukele’s “tendency for flashy and unexpected announcements that seem to contradict or at least question the plan from the economic team”. It could also imperil an IMF programme that had been in the works for more than a year, she added.

“The plans for bitcoin under an increasingly autocratic regime will likely only compound concerns about corruption, money laundering and the independence of regulatory agencies,” she wrote in a note to clients.

The government will set up a trust at the Development Bank of El Salvador to enable automatic conversion of bitcoin into dollars. The law will take effect 90 days after its publication in the official gazette.

“The entry of bitcoins will be equivalent to an increase in the country’s monetary supply, which will temporarily boost El Salvador’s economic activity, but will also pressure inflation higher and with that, interest rates will rise,” Gabriela Siller, head of economic analysis at Banco Base in Mexico, wrote in a note.

The lack of a physical bitcoin currency also increased the prospect of a black market, with local prices below international levels or different interest rates for loans in bitcoin.

Overall, the move’s impact on El Salvador was expected to be small, given the size of the country’s economy.

Nevertheless, “if this proves successful then the other big remittance markets, including Mexico, will be very interested onlookers”, said Nicholas Cawley at DailyFX, an economic news and research website. “Being accepted as legal tender in a country is a coup for bitcoin.”

Additional reporting by Katie Martin in London