In fact, our standard account of monetary history is precisely backwards. We did not begin with barter, discover money, and then eventually develop credit systems. It happened precisely the other way around. What we now call virtual money came first. Coins came much later, and their use spread only unevenly, never completely replacing credit systems. Barter, in turn, appears to be largely a kind of accidental byproduct of the use of coinage or paper money: historically, it has mainly been what people who are used to cash transactions do when for one reason or another they have no access to currency.