[#70546388] finished logic for creating the transaction