In 1296, the agreement that had followed from the Great Cause between King Edward I and the King of the Scots, John Balliol, broke down. King Edward resolved to depose King John, invading the kingdom and beginning the
Wars of Scottish Independence. Nicholas, as pastor of Calder-Comitis, swore fealty to King Edward at Berwick on 28 August 1296. His lands were restored thereafter, on 2 September, Edward having notionally confiscated all the lands of the Scottish clergy earlier in the year pending homage. In the following year, William Fraser, the Bishop of St Andrews, died, and it was Nicholas who was chosen to be Official of the diocese and to administer it during the vacancy. He performed this function until the return to Scotland from France of the new bishop,
William de Lamberton. After his return in August 1299, Lamberton was
Guardian of Scotland and Nicholas became his close associate. Nicholas can be seen to have benefited as a result. He became
Chancellor of Scotland by 30 January 1301. Balmyle's pension for being Chancellor was to be paid by
Arbroath Abbey, for which the abbey later fell into arrears. Later in the year, in April, he was one of four Scottish envoys sent to
Canterbury for abortive talks with the English and French. Nicholas may have remained as Chancellor until 1305. ==Episcopal election==