To unlock/collect all 130 gold blocks, you must:
*Complete all single-player/story missions. Don't forget to play Hostage Crisis & Castle of Doom(located in Cis ship) & The Zillo Beast(after completing all 18 story missions).
*Find/collect all minikits in each mission(excluding ground assaults).
*Complete all space missions(in Ryloth, you must first control the Republic ship's guns with a good guy and destroy an object/ship; same goes with Maridun except with the Cis ship's gun with a bad guy to unlock mission).
*Complete all ground assaults with Republic & Cis.