James I was King of Scotland from 1406 to 1437. The youngest of three sons, he was born in Dunfermline Abbey to King Robert III and his wife Annabella Drummond. His older brother David, Duke of Rothesay, died under suspicious circumstances while being detained by their uncle, Robert, Duke of Albany. His other brother, Robert, died young. Fears for James's safety grew through the winter of 1405/6 and plans were made to send him to France. In February 1406, James was forced to take refuge in the castle of the Bass Rock in the Firth of Forth after his escort was attacked by supporters of Archibald, 4th Earl of Douglas. He remained there until mid-March when he boarded a vessel bound for France. On 22 March English pirates captured the ship and delivered the prince to Henry IV of England. The ailing Robert III died on 4 April and the 11-year-old James, now the uncrowned King of Scotland, would not regain his freedom for another eighteen years (Wikipedia).
N. Mayhew, ‘The contemporary valuation of the fleur-de-lis groats of James I and II’, 58 (1988), 130-32