How do I earn or buy gold bars in Online?
Solution 1:
Since a few weeks you are able to purchase in-game gold in the Red Dead Online - Store with real time currency.
For what I've seen yesterday, you can buy 25 gold bars for €10,-
If you want to earn gold with in-game missions, start playing games like Gun Rush or Show Down games. Doing Stranger missions will earn you some bucks too.
Selling hunted animals will only get you dollars, no gold at all.
Solution 2:
As stated in the comments, Gold bars aren't purchasable yet. However, you can earn them by completing story missions and participating in group missions/activities. You'll notice that the counter for gold bars aren't whole numbers either. You will earn small amounts of a full bar based on what you're awarded in the mission (though there may be missions that award full bars, This i am unsure of). Cheers!