The field of to_addr is the name of a account for example Lucy
The field of to_amount is the value of a account for 10000. Do not write 10_000 because of deserialized mechanism used in the program.
Trx contain 2 pieces of info: Set of I/O that I=O - Value of TRXs=Sum(Inputs) Value of the Fee =Sum(Inputs)-Sum(Outputs)
We implement coinbase TRXs model: do not require inputs, produce an output - allow the miner to collect all the trx fees in that block and that block’s block reward (coin genesis)