Two-way conversion from internal representation and JSON
Added /transaction endpoint