How do bitcoin transactions work?

A transaction is a transfer of value between Bitcoin wallets of sender and receiver in the blockchain network. Each bitcoin transaction is composed of an amount. The amount is the input (sending address), an output (receiver’s address), and the private keys that allow spending of Bitcoins from an individual’s account. The blockchain is a database which maintains the transaction history since bitcoin’s inception.