The man who arguably founded modern economic theory, the 18th-century Scottish philosopher Adam Smith, popularized the idea that barter was a precursor to money. In The Wealth of Nations, he describes an imaginary scenario in which a baker living before the invention of money wanted a butcher’s meat but had nothing the butcher wanted.“No exchange can, in this case, be made between them,” Smith wrote.
Barter exchanges have their own unit of exchange, usually known as barter or trade dollars.  Trade dollars or barter dollars are valued in U.S. currency for the purposes of information returns.   Trade dollars allow barter to take place between parties when one party may not have a simultaneous need or desire for the goods or services of the other members.  Barter exchanges act as the bookkeeper for keeping track of trade dollars that participants accumulate. Earning trade or barter dollars through a barter exchange is considered taxable income, just as if your product or service was sold for cash.
In his analysis of barter between coastal and inland villages in the Trobriand Islands, Keith Hart highlighted the difference between highly ceremonial gift exchange between community leaders, and the barter that occurs between individual households. The haggling that takes place between strangers is possible because of the larger temporary political order established by the gift exchanges of leaders. From this he concludes that barter is "an atomized interaction predicated upon the presence of society" (i.e. that social order established by gift exchange), and not typical between complete strangers.[14]