I was looking at bartering form the point of view of bypassing formal money.
For example: A Grows and sells vegetables for dollars. A gets B to paint his/her house and pays B dollars to do so. Instead of negotiating the money that A should pay B to do the job, the bartering entails agreement on the vegetables and quantity of vegetables A should hand over to B to do the job. Both A and B have something of value to offer and something that they don't have and want which makes bartering possible. Of course, money as a kind of pseudo store of value provides flexibility while society agrees that it (money) has value.