Transaction cost economics addresses why firms exist to minimize transaction costs between buyers and sellers. It analyzes the costs of searching for trading partners, bargaining, and enforcing contracts. There are different types of transaction costs, including search costs, bargaining costs, and monitoring costs. The theory suggests that high transaction costs may favor hierarchies like firms over market exchanges, depending on factors like bounded rationality, opportunism, information asymmetry, asset specificity, and small numbers of traders.