A transaction is an exchange. Money, goods, and services are often exchanged. They are bought, sold or traded.
A bank transaction is when money is taken out of or put into a bank.