added methods to wallet.js