Fix compile error, recover two api to wallet, sign_transactin and cache_transaction