Implemented createTransaction