accountTx: result, type and more refactor