Transfinite diameter on curves, Hankel determinants and the moment problem