In the 1800s, gold nuggets and gold dust served primarily as a form of currency. Therefore, the correct answer is:
It was used as a currency.
Gold was a tangible asset that people in mining towns could use to facilitate trade and transactions for goods and services, effectively functioning as money in that context.