What was often used to pay for the costs of new railroad lines?

Confederate currency
stocks and bonds
bartered goods
gold bars