processTx handles single transaction