It was mostly payed by the catalan population and this is the reason why the Spanish "judges" have to lie so much to jail Catalan politicians for misuse of public funds.
Anyway the point is we won by 90% and if we did another legal referendum we would win again and that is why the spaniards will never allow a legal referendum.