Return data proprely from deserialize_transaction, that can be consumed by api