Transaction processing
Properly encode tx