Socialist candidate Nicolas Maduro has won a narrow victory in Venezuela's presidential poll.
Mr Maduro, who was chosen by the late Hugo Chavez, won 50.7% of the vote against 49.1% for opposition candidate Henrique Capriles.
The electoral commission said the results were "irreversible".
There has been no comment from Mr Capriles, who earlier on Sunday has suggested there was an attempt to doctor the result.
Mr Maduro told a rally of supporters in the capital Caracas that he had won a "just, legal and constitutional" victory.
READ MORE
Opposition leaders storm Nakuru, pledge unity to end Ruto's presidency in 2027
Mt Kenya UDA MPs tell ODM to drop running mate claim, back Kindiki
Do not allow party 'waves' and bribes to influence your choices at the ballot
IEBC reports 45 per cent voter turnout in by-elections by 1pm
However, the margin of victory was far smaller than that gained by the late President Chavez over Mr Capriles at elections last October.
Mr Maduro said he was willing to allow an audit of the election result.
Almost 80% of eligible voters took part in the poll.
Mr Maduro had been serving as acting president since Mr Chavez died of cancer on 5 March.
He is due to be sworn in on 19 April and serve until January 2019 to complete the six-year term that Mr Chavez would have begun in January.
-BBC