Added pre processing of transaction on the transient state
Improved and simplified wallet functions and behaviour