generate transactions from json