Implemented data type Transaction and fromJson in frontend