A transaction is a transfer of bitcoin value that is broadcast to the network and collected into blocks. It consists of inputs and outputs, with inputs connecting to outputs from previous transactions and outputs assigning an address and value. Unspent outputs that have not been used as inputs yet are called UTXOs and managed separately in a UTXO set using LevelDB.