However, it's important to note:
* There's no definitive proof he wrote the poem.
* Many versions of the poem exist, with varying lyrics and attributions.
* The earliest known printed version appeared in 1778, long after Hamilton's death.
While Hamilton is the most commonly cited author, the true origin of "Carrickfergus" remains uncertain. It's possible he wrote the poem, but there's also a chance he simply popularized an already existing folk song.