Skip to content

Instantly share code, notes, and snippets.

@ohac
Created December 12, 2015 11:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ohac/e686ec2dcf5ef9c40b07 to your computer and use it in GitHub Desktop.
Save ohac/e686ec2dcf5ef9c40b07 to your computer and use it in GitHub Desktop.
diff --git a/lib/commands.py b/lib/commands.py
index d1375f3..735da07 100644
--- a/lib/commands.py
+++ b/lib/commands.py
@@ -616,6 +616,11 @@ class Commands:
self.network.send([('blockchain.address.subscribe', [address])], callback)
return True
+ @command('w')
+ def createnewaddress(self):
+ """Create a new address."""
+ self.wallet.create_new_address(None, False)
+
param_descriptions = {
'privkey': 'Private key. Type \'?\' to get a prompt.',
'destination': 'Litecoin address, contact or alias',
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment